Skip to content

Commit

Permalink
fix: updated api types and openapi schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
MacQSL committed Jun 17, 2024
1 parent 91e3259 commit ea520a6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
15 changes: 11 additions & 4 deletions api/src/openapi/schemas/critter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ const captureSchema: OpenAPIV3.SchemaObject = {
type: 'string',
format: 'uuid'
},
capture_method_id: {
type: 'string',
format: 'uuid'
},
capture_location_id: {
type: 'string',
format: 'uuid'
Expand All @@ -82,13 +86,16 @@ const captureSchema: OpenAPIV3.SchemaObject = {
},
capture_location: locationSchema,
release_location: locationSchema,
force_create_release: {
type: 'boolean'
capture_date: {
type: 'string'
},
capture_time: {
type: 'string'
},
capture_timestamp: {
release_date: {
type: 'string'
},
release_timestamp: {
release_time: {
type: 'string'
},
capture_comment: {
Expand Down
7 changes: 5 additions & 2 deletions api/src/services/critterbase-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ export interface ICritter {
export interface ICapture {
capture_id?: string;
critter_id: string;
capture_method_id?: string | null;
capture_location_id: string;
release_location_id: string;
capture_timestamp: string;
release_timestamp: string;
capture_date: string;
capture_time?: string | null;
release_date?: string | null;
release_time?: string | null;
capture_comment: string;
release_comment: string;
}
Expand Down

0 comments on commit ea520a6

Please sign in to comment.