forked from loafle/openapi-generator-original
[core] Add type and format properties to model of inline response (#6153)
This commit is contained in:
@@ -621,6 +621,15 @@ public class InlineModelResolver {
|
|||||||
XML xml = object.getXml();
|
XML xml = object.getXml();
|
||||||
Map<String, Schema> properties = object.getProperties();
|
Map<String, Schema> properties = object.getProperties();
|
||||||
Schema model = new Schema();
|
Schema model = new Schema();
|
||||||
|
if (object.getType() != null) {
|
||||||
|
model.setType(object.getType());
|
||||||
|
}
|
||||||
|
if (object.getFormat() != null) {
|
||||||
|
// Even though the `format` keyword typically applies to primitive types only,
|
||||||
|
// the JSON schema specification states `format` can be used for any model type instance
|
||||||
|
// including object types.
|
||||||
|
model.setFormat(object.getFormat());
|
||||||
|
}
|
||||||
model.setDescription(description);
|
model.setDescription(description);
|
||||||
model.setExample(example);
|
model.setExample(example);
|
||||||
model.setName(object.getName());
|
model.setName(object.getName());
|
||||||
|
|||||||
@@ -263,6 +263,23 @@ public class InlineModelResolverTest {
|
|||||||
assertTrue(model.getProperties().get("name") instanceof StringSchema);
|
assertTrue(model.getProperties().get("name") instanceof StringSchema);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testInlineResponseModelType() {
|
||||||
|
OpenAPI openAPI = TestUtils.parseSpec("src/test/resources/3_0/6150_model_json_inline.yaml");
|
||||||
|
new InlineModelResolver().flatten(openAPI);
|
||||||
|
|
||||||
|
Schema InlineResponse200 = openAPI.getComponents().getSchemas().get("inline_response_200");
|
||||||
|
assertEquals("object", InlineResponse200.getType());
|
||||||
|
assertEquals("unknown", InlineResponse200.getFormat());
|
||||||
|
Schema FooBarObject = openAPI.getComponents().getSchemas().get("FooBarObject");
|
||||||
|
assertEquals("object", FooBarObject.getType());
|
||||||
|
assertEquals("date-time", FooBarObject.getFormat());
|
||||||
|
Schema Animal = openAPI.getComponents().getSchemas().get("Animal");
|
||||||
|
assertEquals("object", Animal.getType());
|
||||||
|
Schema Dog = openAPI.getComponents().getSchemas().get("Dog");
|
||||||
|
assertNull(Dog.getType());
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testInlineResponseModelWithTitle() {
|
public void testInlineResponseModelWithTitle() {
|
||||||
OpenAPI openapi = new OpenAPI();
|
OpenAPI openapi = new OpenAPI();
|
||||||
|
|||||||
@@ -0,0 +1,79 @@
|
|||||||
|
openapi: "3.0.0"
|
||||||
|
info:
|
||||||
|
version: 1.0.0
|
||||||
|
title: Test inline response model
|
||||||
|
description: Test inline response model.
|
||||||
|
license:
|
||||||
|
name: MIT
|
||||||
|
paths:
|
||||||
|
/foobar:
|
||||||
|
get:
|
||||||
|
operationId: testOperation
|
||||||
|
description: No type property in modelJson of InlineResponse200
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: InlineResponse200 itself.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
# It is legal to use the `format` keyword for object types. The JSON schema specification explicitly allows this.
|
||||||
|
# Even if in practice most OAS authors use `format` for primitive types, it should still be allowed to use format for object types.
|
||||||
|
format: unknown
|
||||||
|
properties:
|
||||||
|
foo:
|
||||||
|
type: string
|
||||||
|
bar:
|
||||||
|
type: string
|
||||||
|
post:
|
||||||
|
operationId: testOperationPost
|
||||||
|
description: No type property in modelJson of InlineResponse200
|
||||||
|
responses:
|
||||||
|
400:
|
||||||
|
description: InlineResponse200 itself.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
title: FooBarObject
|
||||||
|
type: object
|
||||||
|
# It is legal to use the `format` keyword for object types. The JSON schema specification explicitly allows this.
|
||||||
|
# Even if in practice most OAS authors use `format` for primitive types, it should still be allowed to use format for object types.
|
||||||
|
format: date-time
|
||||||
|
properties:
|
||||||
|
foo:
|
||||||
|
type: string
|
||||||
|
components:
|
||||||
|
schemas:
|
||||||
|
Animal:
|
||||||
|
type: object
|
||||||
|
discriminator: className
|
||||||
|
required:
|
||||||
|
- className
|
||||||
|
properties:
|
||||||
|
className:
|
||||||
|
type: string
|
||||||
|
color:
|
||||||
|
type: string
|
||||||
|
default: 'red'
|
||||||
|
Dog:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/Animal'
|
||||||
|
- type: object
|
||||||
|
properties:
|
||||||
|
breed:
|
||||||
|
type: string
|
||||||
|
Cat:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/Animal'
|
||||||
|
- type: object
|
||||||
|
properties:
|
||||||
|
declawed:
|
||||||
|
type: boolean
|
||||||
|
HugeCat:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/Cat'
|
||||||
|
- type: object
|
||||||
|
properties:
|
||||||
|
kind:
|
||||||
|
type: string
|
||||||
|
enum: [lions, tigers, leopards, jaguars]
|
||||||
@@ -2090,10 +2090,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2103,6 +2105,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2090,10 +2090,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2103,6 +2105,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2090,10 +2090,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2103,6 +2105,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2090,10 +2090,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2103,6 +2105,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2151,10 +2151,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2164,6 +2166,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -1999,6 +1999,7 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
string:
|
string:
|
||||||
$ref: '#/components/schemas/Foo'
|
$ref: '#/components/schemas/Foo'
|
||||||
|
type: object
|
||||||
inline_object:
|
inline_object:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
@@ -2138,10 +2139,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -1920,6 +1920,7 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
string:
|
string:
|
||||||
$ref: '#/components/schemas/Foo'
|
$ref: '#/components/schemas/Foo'
|
||||||
|
type: object
|
||||||
inline_object:
|
inline_object:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
@@ -2059,10 +2060,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2249,6 +2249,7 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
string:
|
string:
|
||||||
$ref: '#/components/schemas/Foo'
|
$ref: '#/components/schemas/Foo'
|
||||||
|
type: object
|
||||||
inline_object:
|
inline_object:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
@@ -2390,14 +2391,17 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
ChildCat_allOf:
|
ChildCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2831,14 +2831,16 @@
|
|||||||
"breed" : {
|
"breed" : {
|
||||||
"type" : "string"
|
"type" : "string"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"type" : "object"
|
||||||
},
|
},
|
||||||
"Cat_allOf" : {
|
"Cat_allOf" : {
|
||||||
"properties" : {
|
"properties" : {
|
||||||
"declawed" : {
|
"declawed" : {
|
||||||
"type" : "boolean"
|
"type" : "boolean"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"type" : "object"
|
||||||
},
|
},
|
||||||
"BigCat_allOf" : {
|
"BigCat_allOf" : {
|
||||||
"properties" : {
|
"properties" : {
|
||||||
@@ -2846,7 +2848,8 @@
|
|||||||
"enum" : [ "lions", "tigers", "leopards", "jaguars" ],
|
"enum" : [ "lions", "tigers", "leopards", "jaguars" ],
|
||||||
"type" : "string"
|
"type" : "string"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"type" : "object"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"securitySchemes" : {
|
"securitySchemes" : {
|
||||||
|
|||||||
@@ -2225,10 +2225,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2238,6 +2240,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -2225,10 +2225,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2238,6 +2240,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -132,4 +132,5 @@ components:
|
|||||||
type: array
|
type: array
|
||||||
required:
|
required:
|
||||||
- field_a
|
- field_a
|
||||||
|
type: object
|
||||||
|
|
||||||
|
|||||||
@@ -606,6 +606,7 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
foo:
|
foo:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
authScheme:
|
authScheme:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -1565,10 +1565,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
@@ -211,4 +211,5 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
required:
|
required:
|
||||||
- required_thing
|
- required_thing
|
||||||
|
type: object
|
||||||
|
|
||||||
|
|||||||
@@ -2225,10 +2225,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
Cat_allOf:
|
Cat_allOf:
|
||||||
properties:
|
properties:
|
||||||
declawed:
|
declawed:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat_allOf:
|
BigCat_allOf:
|
||||||
properties:
|
properties:
|
||||||
kind:
|
kind:
|
||||||
@@ -2238,6 +2240,7 @@ components:
|
|||||||
- leopards
|
- leopards
|
||||||
- jaguars
|
- jaguars
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
|
|||||||
Reference in New Issue
Block a user