swagger-parser
                                
                                 swagger-parser copied to clipboard
                                
                                    swagger-parser copied to clipboard
                            
                            
                            
                        3.1.0 spec parsing, $defs information omitted
3.1.0 spec parsing, $defs information omitted
When parsing a spec like this:
# OAS document that uses 3.1 features:
# 'null' type
# type array
openapi: 3.1.0
info:
  version: 1.0.0
  title: Example
  license:
    name: MIT
    identifier: MIT
servers:
  - url: http://api.example.xyz/v1
paths:
  /somePath:
    get:
      operationId: getSomePath
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema: {}
components:
  schemas:
    AnyTypeWithDefs:
      properties:
        firstName:
          $ref: "#/components/schemas/AnyTypeWithDefs/$defs/name"
        lastName:
          $ref: "#/components/schemas/AnyTypeWithDefs/$defs/name"
      $defs:
        name:
          type: string
    ObjectWithDefs:
      properties:
        firstName:
          $ref: "#/components/schemas/ObjectWithDefs/$defs/name"
        lastName:
          $ref: "#/components/schemas/ObjectWithDefs/$defs/name"
      $defs:
        name:
          type: string
- the java Schema object lacks any acessor getters/properties to get the defs info
- this info is not surfaced by the parser's output
This prevents downstream users of this library from being able to implement the openapi 3.1.0 and 2020-12 json schema $defs feature