Skip to content

Commit

Permalink
update swaggercodegen example yaml including array of objects property
Browse files Browse the repository at this point in the history
  • Loading branch information
dikhan committed Nov 28, 2018
1 parent 114b00c commit bef1bfc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/swaggercodegen/api/resources/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,14 @@ definitions:
properties:
name:
type: string
arrayOfObjectsExample: # This is an example of an array of objects
type: "array"
items:
type: "object"
properties:
protocol:
type: string

ObjectProperty:
type: object
required:
Expand Down Expand Up @@ -415,6 +423,7 @@ definitions:
$ref: "#/definitions/Status"
x-terraform-field-status: true # identifies the field that should be used as status for async operations. This is handy when the field name is not status but some other name the service provider might have chosen and enables the provider to identify the field as the status field that will be used to track progress for the async operations
readOnly: true

Status:
type: object
properties:
Expand Down

0 comments on commit bef1bfc

Please sign in to comment.