openapi-processor / openapi-processor-core

moved into openapi-processor-base
Apache License 2.0
7 stars 5 forks source link

support OpenAPI "deprecated" property #10

Closed hauner closed 4 years ago

hauner commented 4 years ago

properties

in:

  schemas:
    Foo:
      type: object
      properties:
        bar:
          type: string
          deprecated: true  

out:

class Foo {

    @Deprecated
    @JsonProperty("bar")
    private String bar;

     //.....
}

endpoints

in:

paths:
  /foo:
    get:
      # ....
      deprecated: true

out:


interface Foo {

    @Deprecated
    @GetMapping(path = "/foo")
    void getFoo();
    // ....
}
hauner commented 4 years ago

another case: parameters can have a deprecated property too