diff --git a/openapi3/testdata/callbacks.yml.internalized.yml b/openapi3/testdata/callbacks.yml.internalized.yml index 866cb5ca4..21ea48816 100644 --- a/openapi3/testdata/callbacks.yml.internalized.yml +++ b/openapi3/testdata/callbacks.yml.internalized.yml @@ -29,6 +29,9 @@ }, "SomePayload": { "type": "object" + }, + "testdata_callbacks_SomePayload": { + "type": "object" } } }, @@ -82,7 +85,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SomePayload" + "$ref": "#/components/schemas/testdata_callbacks_SomePayload" } } }, diff --git a/openapi3/testdata/interalizationNameCollision/api.yml.internalized.yml b/openapi3/testdata/interalizationNameCollision/api.yml.internalized.yml index 75e52f0fc..38bc39da5 100644 --- a/openapi3/testdata/interalizationNameCollision/api.yml.internalized.yml +++ b/openapi3/testdata/interalizationNameCollision/api.yml.internalized.yml @@ -14,7 +14,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/schemas_book_record" + "$ref": "#/components/schemas/testdata_interalizationNameCollision_schemas_book_record" } } } @@ -31,7 +31,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/schemas_cd_record" + "$ref": "#/components/schemas/testdata_interalizationNameCollision_schemas_cd_record" } } } @@ -42,7 +42,7 @@ }, "components": { "schemas": { - "schemas_book_record": { + "testdata_interalizationNameCollision_schemas_book_record": { "type": "object", "required": [ "id" @@ -56,7 +56,7 @@ } } }, - "schemas_cd_record": { + "testdata_interalizationNameCollision_schemas_cd_record": { "type": "object", "required": [ "id" diff --git a/openapi3/testdata/issue959/openapi.yml.internalized.yml b/openapi3/testdata/issue959/openapi.yml.internalized.yml index 3cbe674d6..5c3c18584 100644 --- a/openapi3/testdata/issue959/openapi.yml.internalized.yml +++ b/openapi3/testdata/issue959/openapi.yml.internalized.yml @@ -1,7 +1,7 @@ { "components": { "schemas": { - "External1": { + "testdata_issue959_components_External1": { "type": "string" } } @@ -26,10 +26,10 @@ "name": "external1", "required": true, "schema": { - "$ref": "#/components/schemas/External1" + "$ref": "#/components/schemas/testdata_issue959_components_External1" } } ] } } -} \ No newline at end of file +} diff --git a/openapi3/testdata/recursiveRef/openapi.yml.internalized.yml b/openapi3/testdata/recursiveRef/openapi.yml.internalized.yml index 02e3d09db..f4948159b 100644 --- a/openapi3/testdata/recursiveRef/openapi.yml.internalized.yml +++ b/openapi3/testdata/recursiveRef/openapi.yml.internalized.yml @@ -1,7 +1,7 @@ { "components": { "parameters": { - "parameters_number": { + "testdata_recursiveRef_parameters_number": { "in": "query", "name": "someNumber", "schema": { @@ -10,11 +10,21 @@ } }, "responses": { + "testdata_recursiveRef_openapi_400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/testdata_recursiveRef_components_models_error" + } + } + }, + "description": "400 Bad Request" + }, "400": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/testdata_recursiveRef_components_models_error" } } }, @@ -22,14 +32,50 @@ } }, "schemas": { - "Bar": { + "testdata_recursiveRef_openapi_Bar": { + "example": "bar", + "type": "string" + }, + "testdata_recursiveRef_openapi_Foo": { + "properties": { + "bar": { + "$ref": "#/components/schemas/testdata_recursiveRef_components_Bar" + } + }, + "type": "object" + }, + "testdata_recursiveRef_openapi_Foo2": { + "properties": { + "foo": { + "$ref": "#/components/schemas/testdata_recursiveRef_openapi_Foo" + } + }, + "type": "object" + }, + "testdata_recursiveRef_components_models_error":{ + "title":"ErrorDetails", + "type":"object" + }, + "testdata_recursiveRef_components_models_error_Error":{ + "title":"ErrorDetails", + "type":"object" + }, + "testdata_recursiveRef_openapi_Cat": { + "properties": { + "cat": { + "$ref": "#/components/schemas/testdata_recursiveRef_openapi_Cat" + } + }, + "type": "object" + }, + "Bar": { "example": "bar", "type": "string" }, "Foo": { "properties": { "bar": { - "$ref": "#/components/schemas/Bar" + "$ref": "#/components/schemas/testdata_recursiveRef_components_Bar" } }, "type": "object" @@ -37,7 +83,7 @@ "Foo2": { "properties": { "foo": { - "$ref": "#/components/schemas/Foo" + "$ref": "#/components/schemas/testdata_recursiveRef_openapi_Foo" } }, "type": "object" @@ -49,7 +95,7 @@ "Cat": { "properties": { "cat": { - "$ref": "#/components/schemas/Cat" + "$ref": "#/components/schemas/testdata_recursiveRef_openapi_Cat" } }, "type": "object" @@ -82,7 +128,7 @@ "schema": { "properties": { "foo2": { - "$ref": "#/components/schemas/Foo2" + "$ref": "#/components/schemas/testdata_recursiveRef_openapi_Foo2" } }, "type": "object" @@ -92,13 +138,13 @@ "description": "OK" }, "400": { - "$ref": "#/components/responses/400" + "$ref": "#/components/responses/testdata_recursiveRef_openapi_400" } } }, "parameters": [ { - "$ref": "#/components/parameters/parameters_number" + "$ref": "#/components/parameters/testdata_recursiveRef_parameters_number" } ] } diff --git a/openapi3/testdata/spec.yaml.internalized.yml b/openapi3/testdata/spec.yaml.internalized.yml index bd6d7920b..150583731 100644 --- a/openapi3/testdata/spec.yaml.internalized.yml +++ b/openapi3/testdata/spec.yaml.internalized.yml @@ -4,19 +4,19 @@ "Test": { "properties": { "test": { - "$ref": "#/components/schemas/ext_definitions_b" + "$ref": "#/components/schemas/testdata_ext_definitions_b" } }, "type": "object" }, - "definitions_a": { + "testdata_ext_definitions_a": { "type": "string" }, - "ext_definitions_b": { + "testdata_ext_definitions_b": { "description": "I use a local reference.", "properties": { "name": { - "$ref": "#/components/schemas/definitions_a" + "$ref": "#/components/schemas/testdata_ext_definitions_a" } }, "type": "object" diff --git a/openapi3/testdata/testref.openapi.yml.internalized.yml b/openapi3/testdata/testref.openapi.yml.internalized.yml index 766dc0cdd..d071d24d3 100644 --- a/openapi3/testdata/testref.openapi.yml.internalized.yml +++ b/openapi3/testdata/testref.openapi.yml.internalized.yml @@ -4,7 +4,7 @@ "AnotherTestSchema": { "type": "string" }, - "components_CustomTestSchema": { + "testdata_components_CustomTestSchema": { "type": "string" } }