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

[FEATURE] Allow $ref's in query/path parameters #577

Open
dblock opened this issue Sep 15, 2024 · 0 comments
Open

[FEATURE] Allow $ref's in query/path parameters #577

dblock opened this issue Sep 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dblock
Copy link
Member

dblock commented Sep 15, 2024

Is your feature request related to a problem?

In spec/namespaces/ism.yaml I tried to use $refs in path and query parameters that are repeated a lot.

Instead of:

   parameters:
     ism.head_policy::path.policy_id:
      name: policy_id
      in: path
      required: true
      schema:
        type: string

I tried

parameters:
  ism.head_policy::path.policy_id:
      $ref: '../schemas/ism._common.yaml#/components/parameters/ism::path.policy_id'

This failed with an error in tests.

FAILED  policy_id (Schema for "policy_id" parameter not found.)

What solution would you like?

Allow refs in parameters.

Do you have any additional context?

I couldn't figure out where/how to dereference these.

@dblock dblock added enhancement New feature or request untriaged and removed untriaged labels Sep 15, 2024
@Xtansia Xtansia removed the untriaged label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants