Skip to content

Conversation

@darrelmiller
Copy link
Member

@darrelmiller darrelmiller commented May 2, 2021

Fixes #500

  • Fixed issues with Pointer encoding and missing segments
openapi: 3.0.0
info:
  title: foo
  version: bar
paths:
  '/foo':
    get:
      responses:
        200: 
          description: ok
          content:
            application/json:  
              schema: asdasd

Pointer needs to look like

#/paths/~1foo/get/responses/200/content/application~1json/schema

Previously slashes were not being escaped. Also, map keys were not getting added to the path. This affected content, examples, headers, encoding

  • Added better documentation to the OpenApiException.Pointer property
  • Converted OpenApiException to OpenApiReaderException in parsenodes so that line number is always included if JSON Pointer is not possible.

@darrelmiller darrelmiller merged commit 89c4569 into vnext May 2, 2021
@darrelmiller darrelmiller deleted the issues/500 branch May 2, 2021 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document the syntax of OpenApiError.Pointer

2 participants