Skip to content

Commit

Permalink
test: merge test specs into existing test spec
Browse files Browse the repository at this point in the history
  • Loading branch information
MGabr committed Oct 13, 2024
1 parent 96d391a commit 0cb6f05
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 145 deletions.
25 changes: 0 additions & 25 deletions tests/configs/react-query.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,31 +413,6 @@ export default defineConfig({
target: '../specifications/polymorphic.yaml',
},
},
polymorphicRequired: {
output: {
target: '../generated/react-query/polymorphic-required/endpoints.ts',
schemas: '../generated/react-query/polymorphic-required/model',
client: 'react-query',
mock: true,
headers: true,
},
input: {
target: '../specifications/polymorphic-required.yaml',
},
},
polymorphicRequiredNested: {
output: {
target:
'../generated/react-query/polymorphic-required-nested/endpoints.ts',
schemas: '../generated/react-query/polymorphic-required-nested/model',
client: 'react-query',
mock: true,
headers: true,
},
input: {
target: '../specifications/polymorphic-required-nested.yaml',
},
},
namedParameters: {
output: {
target: '../generated/react-query/named-parameters/endpoints.ts',
Expand Down
61 changes: 0 additions & 61 deletions tests/specifications/polymorphic-required-nested.yaml

This file was deleted.

59 changes: 0 additions & 59 deletions tests/specifications/polymorphic-required.yaml

This file was deleted.

14 changes: 14 additions & 0 deletions tests/specifications/polymorphic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,26 @@ paths:
components:
schemas:
DescendantOne:
required:
- value
type: object
allOf:
- $ref: '#/components/schemas/ParentType'
- type: object
required:
- count
properties:
value:
type: boolean
count:
type: integer
format: int32
otherCount:
type: integer
format: int32
DescendantTwo:
required:
- value
type: object
allOf:
- $ref: '#/components/schemas/ParentType'
Expand All @@ -35,6 +47,8 @@ components:
value:
type: string
ParentType:
required:
- type
type: object
properties:
key:
Expand Down

0 comments on commit 0cb6f05

Please sign in to comment.