diff --git a/test/data/swagger-import/raml/func-spec-example-23.yaml b/test/data/swagger-import/raml/func-spec-example-23.yaml new file mode 100644 index 00000000..21147ce7 --- /dev/null +++ b/test/data/swagger-import/raml/func-spec-example-23.yaml @@ -0,0 +1,29 @@ +#%RAML 1.0 +title: Definition names conversion example +version: 1.0.0 +types: + User: + properties: + id: + type: integer + format: int64 + required: false + username: + type: string + required: false + firstName: + type: string + required: false + lastName: + type: string + required: false + email: + type: string + required: false + //: + type: string + ExtendedUsers: + type: object + properties: + //: + type: User \ No newline at end of file diff --git a/test/data/swagger-import/swagger/func-spec-example-23.yaml b/test/data/swagger-import/swagger/func-spec-example-23.yaml new file mode 100644 index 00000000..6a9c6af3 --- /dev/null +++ b/test/data/swagger-import/swagger/func-spec-example-23.yaml @@ -0,0 +1,28 @@ +swagger: "2.0" +info: + version: 1.0.0 + title: Definition names conversion example + +definitions: + User: + type: object + additionalProperties: + type: string + properties: + id: + type: integer + format: int64 + username: + type: string + firstName: + type: string + lastName: + type: string + email: + type: string + ExtendedUsers: + type: object + additionalProperties: + $ref: "#/definitions/User" + +paths: {} \ No newline at end of file