Eliminate added x-scope attributes

Open
#53 0 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

Start by locating validate_spec and the code that adds x-scope attributes. Check how validation currently mutates the supplied OpenAPI specification, then identify the existing validation tests and verify that the input remains unchanged after validation.

Written by the indexing model from the issue text.

Description

kind/enhancement

I'm working on some code that imports an OpenAPI spec, modifies it, and outputs a new one. I'd prefer not to have the spec modified by the validator; the addition of the x-scope attributes is something I'd prefer to avoid.

I'm working around this for now by making a deep copy of the spec and passing that to validate_spec, so consider this a suggestion rather than a serious issue.

Dominant language
Python
Stars
409
Forks
73
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python-openapi/openapi-spec-validator

All issues in python-openapi/openapi-spec-validator

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.