Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Import functional spec examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Natalia committed Jan 16, 2017
1 parent 94d2350 commit a29b497
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
29 changes: 29 additions & 0 deletions test/data/swagger-import/raml/func-spec-example-23.yaml
Original file line number Diff line number Diff line change
@@ -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
28 changes: 28 additions & 0 deletions test/data/swagger-import/swagger/func-spec-example-23.yaml
Original file line number Diff line number Diff line change
@@ -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: {}

0 comments on commit a29b497

Please sign in to comment.