Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

externalValue not work #2144

Open
lucianojs opened this issue May 12, 2022 · 0 comments
Open

externalValue not work #2144

lucianojs opened this issue May 12, 2022 · 0 comments
Labels
enhancement New feature or request portal triaged

Comments

@lucianojs
Copy link

lucianojs commented May 12, 2022

When my spec have a externalValue keyword the sample is not retrieved.

Context

When I have this spec:

openapi: 3.0.3
info:
  title: A minimal OpenAPI document
  version: 0.0.1
  description: description
  license:
    name: Apache 2.0
    url: 'http://www.apache.org/licenses/LICENSE-2.0.html'    
servers:
  - url: /api/v1
    description: description
paths:
  /sample:
    post:
      summary: Sample request
      operationId: sample
      requestBody:
        content:
          application/json:
            schema:
              properties:
                responsavel:
                  type: object
                  properties:
                    cnpj:
                      type: string
                      title: CNPJ
                      example: '00000000000191'
            examples:
              sample1:
                externalValue: '../v1/examples/obrigatorios.json'
      responses:
        '200':
          description: Updated
        '404':
          description: Not found

Current Behavior

When I try to show the example in request Payload doesn't work.
localhost_8080_api_v1_index html (2)

Expected Behavior

The sample is show correctly.

Possible Workaround/Solution

Steps to Reproduce

Environment

  • Version used:
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop or mobile):
  • Link to your environment/workspace/project:
@mnaumanali94 mnaumanali94 added the enhancement New feature or request label May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request portal triaged
Projects
None yet
Development

No branches or pull requests

3 participants