Skip to content

Inline schema's "default", "maximum"... attributes are discarded by parser (or model?)'s ModelImpl class #239

@jjqq2013

Description

@jjqq2013

When define following parameter with a simple inline schema

...
  post:
      ... ...
      parameters:
        - name: amount
          in: body
          schema:
            type: integer
            format: int64
            description: amount of money
            default: 1000
            maximum: 100000

I use swagger parser to read the yaml, it is strange the "default", "maximum"... attributes are disappeared in its ModelImpl instance!

2016-04-29 16 08 54

Though this is not a big problem, i can have other way to define this attributes, but it's better to let you know this so fix it later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions