Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/schema #882

Merged
merged 9 commits into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 10 additions & 9 deletions examples/advanced/src/gen/models/ts/petController/AddPet.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
import type { Pet } from '../Pet'
import type { AddPetRequest } from '../AddPetRequest'

/**
* @description Successful operation
*/
export type AddPetMutationResponse = Omit<NonNullable<Pet>, 'name'>

/**
* @description Create a new pet in the store
*/
export type AddPetMutationRequest = AddPetRequest

/**
* @description Successful operation
*/
Expand All @@ -17,15 +27,6 @@ export type AddPet405 = {
message?: string
}

/**
* @description Create a new pet in the store
*/
export type AddPetMutationRequest = AddPetRequest

/**
* @description Successful operation
*/
export type AddPetMutationResponse = Omit<NonNullable<Pet>, 'name'>
export type AddPetMutation = {
Response: AddPetMutationResponse
Request: AddPetMutationRequest
Expand Down
23 changes: 12 additions & 11 deletions examples/advanced/src/gen/models/ts/petController/DeletePet.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/**
* @description Invalid pet value
*/
export type DeletePet400 = any
export type DeletePetPathParams = {
/**
* @description Pet id to delete
* @type integer int64
*/
petId: number
}

export type DeletePetHeaderParams = {
/**
Expand All @@ -12,13 +15,11 @@ export type DeletePetHeaderParams = {

export type DeletePetMutationResponse = any

export type DeletePetPathParams = {
/**
* @description Pet id to delete
* @type integer int64
*/
petId: number
}
/**
* @description Invalid pet value
*/
export type DeletePet400 = any

export type DeletePetMutation = {
Response: DeletePetMutationResponse
PathParams: DeletePetPathParams
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
import type { Pet } from '../Pet'

/**
* @description successful operation
*/
export type FindPetsByStatus200 = Pet[]

/**
* @description Invalid status value
*/
export type FindPetsByStatus400 = any

export enum FindPetsByStatusQueryParamsStatusEnum {
'available' = 'available',
'pending' = 'pending',
Expand All @@ -28,6 +18,17 @@ export type FindPetsByStatusQueryParams = {
* @description successful operation
*/
export type FindPetsByStatusQueryResponse = Pet[]

/**
* @description successful operation
*/
export type FindPetsByStatus200 = Pet[]

/**
* @description Invalid status value
*/
export type FindPetsByStatus400 = any

export type FindPetsByStatusQuery = {
Response: FindPetsByStatusQueryResponse
QueryParams: FindPetsByStatusQueryParams
Expand Down
49 changes: 25 additions & 24 deletions examples/advanced/src/gen/models/ts/petController/FindPetsByTags.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,5 @@
import type { Pet } from '../Pet'

/**
* @description successful operation
*/
export type FindPetsByTags200 = Pet[]

/**
* @description Invalid tag value
*/
export type FindPetsByTags400 = any

export const FindPetsByTagsHeaderParamsXExampleEnum = {
'ONE': 'ONE',
'TWO': 'TWO',
'THREE': 'THREE',
} as const
export type FindPetsByTagsHeaderParamsXExampleEnum = (typeof FindPetsByTagsHeaderParamsXExampleEnum)[keyof typeof FindPetsByTagsHeaderParamsXExampleEnum]
export type FindPetsByTagsHeaderParams = {
/**
* @description Header parameters
* @type string
*/
'X-EXAMPLE': FindPetsByTagsHeaderParamsXExampleEnum
}

export type FindPetsByTagsQueryParams = {
/**
* @description Tags to filter by
Expand All @@ -42,10 +18,35 @@ export type FindPetsByTagsQueryParams = {
pageSize?: string
}

export const FindPetsByTagsHeaderParamsXExampleEnum = {
'ONE': 'ONE',
'TWO': 'TWO',
'THREE': 'THREE',
} as const
export type FindPetsByTagsHeaderParamsXExampleEnum = (typeof FindPetsByTagsHeaderParamsXExampleEnum)[keyof typeof FindPetsByTagsHeaderParamsXExampleEnum]
export type FindPetsByTagsHeaderParams = {
/**
* @description Header parameters
* @type string
*/
'X-EXAMPLE': FindPetsByTagsHeaderParamsXExampleEnum
}

/**
* @description successful operation
*/
export type FindPetsByTagsQueryResponse = Pet[]

/**
* @description successful operation
*/
export type FindPetsByTags200 = Pet[]

/**
* @description Invalid tag value
*/
export type FindPetsByTags400 = any

export type FindPetsByTagsQuery = {
Response: FindPetsByTagsQueryResponse
QueryParams: FindPetsByTagsQueryParams
Expand Down
25 changes: 13 additions & 12 deletions examples/advanced/src/gen/models/ts/petController/GetPetById.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
import type { Pet } from '../Pet'

export type GetPetByIdPathParams = {
/**
* @description ID of pet to return
* @type integer int64
*/
petId: number
}

/**
* @description successful operation
*/
export type GetPetByIdQueryResponse = Omit<NonNullable<Pet>, 'name'>

/**
* @description successful operation
*/
Expand All @@ -15,18 +28,6 @@ export type GetPetById400 = any
*/
export type GetPetById404 = any

export type GetPetByIdPathParams = {
/**
* @description ID of pet to return
* @type integer int64
*/
petId: number
}

/**
* @description successful operation
*/
export type GetPetByIdQueryResponse = Omit<NonNullable<Pet>, 'name'>
export type GetPetByIdQuery = {
Response: GetPetByIdQueryResponse
PathParams: GetPetByIdPathParams
Expand Down
19 changes: 10 additions & 9 deletions examples/advanced/src/gen/models/ts/petController/UpdatePet.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
import type { Pet } from '../Pet'

/**
* @description Successful operation
*/
export type UpdatePetMutationResponse = Omit<NonNullable<Pet>, 'name'>

/**
* @description Update an existent pet in the store
*/
export type UpdatePetMutationRequest = Omit<NonNullable<Pet>, 'id'>

/**
* @description Successful operation
*/
Expand All @@ -20,15 +30,6 @@ export type UpdatePet404 = any
*/
export type UpdatePet405 = any

/**
* @description Update an existent pet in the store
*/
export type UpdatePetMutationRequest = Omit<NonNullable<Pet>, 'id'>

/**
* @description Successful operation
*/
export type UpdatePetMutationResponse = Omit<NonNullable<Pet>, 'name'>
export type UpdatePetMutation = {
Response: UpdatePetMutationResponse
Request: UpdatePetMutationRequest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
/**
* @description Invalid input
*/
export type UpdatePetWithForm405 = any

export type UpdatePetWithFormMutationResponse = any

export type UpdatePetWithFormPathParams = {
/**
* @description ID of pet that needs to be updated
Expand All @@ -25,6 +18,14 @@ export type UpdatePetWithFormQueryParams = {
*/
status?: string
}

export type UpdatePetWithFormMutationResponse = any

/**
* @description Invalid input
*/
export type UpdatePetWithForm405 = any

export type UpdatePetWithFormMutation = {
Response: UpdatePetWithFormMutationResponse
PathParams: UpdatePetWithFormPathParams
Expand Down
25 changes: 13 additions & 12 deletions examples/advanced/src/gen/models/ts/petController/UploadFile.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
import type { ApiResponse } from '../ApiResponse'

/**
* @description successful operation
*/
export type UploadFile200 = ApiResponse

export type UploadFileMutationRequest = string

/**
* @description successful operation
*/
export type UploadFileMutationResponse = ApiResponse

export type UploadFilePathParams = {
/**
* @description ID of pet to update
Expand All @@ -27,6 +15,19 @@ export type UploadFileQueryParams = {
*/
additionalMetadata?: string
}

/**
* @description successful operation
*/
export type UploadFileMutationResponse = ApiResponse

export type UploadFileMutationRequest = string

/**
* @description successful operation
*/
export type UploadFile200 = ApiResponse

export type UploadFileMutation = {
Response: UploadFileMutationResponse
Request: UploadFileMutationRequest
Expand Down
47 changes: 24 additions & 23 deletions examples/advanced/src/gen/models/ts/petsController/CreatePets.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import type { PetNotFound } from '../PetNotFound'

/**
* @description Null response
*/
export type CreatePets201 = any
export type CreatePetsPathParams = {
/**
* @description UUID
* @type string
*/
uuid: string
}

/**
* @description unexpected error
*/
export type CreatePetsError = PetNotFound
export type CreatePetsQueryParams = {
/**
* @description Offset
* @type integer | undefined
*/
offset?: number
}

export const CreatePetsHeaderParamsXExampleEnum = {
'ONE': 'ONE',
Expand All @@ -24,6 +30,8 @@ export type CreatePetsHeaderParams = {
'X-EXAMPLE': CreatePetsHeaderParamsXExampleEnum
}

export type CreatePetsMutationResponse = any

export type CreatePetsMutationRequest = {
/**
* @type string
Expand All @@ -35,23 +43,16 @@ export type CreatePetsMutationRequest = {
tag: string
}

export type CreatePetsMutationResponse = any
/**
* @description Null response
*/
export type CreatePets201 = any

export type CreatePetsPathParams = {
/**
* @description UUID
* @type string
*/
uuid: string
}
/**
* @description unexpected error
*/
export type CreatePetsError = PetNotFound

export type CreatePetsQueryParams = {
/**
* @description Offset
* @type integer | undefined
*/
offset?: number
}
export type CreatePetsMutation = {
Response: CreatePetsMutationResponse
Request: CreatePetsMutationRequest
Expand Down
Loading
Loading