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

Regex in $ref path is URLEncoded #69

Closed
hipstersmoothie opened this issue Jan 30, 2018 · 2 comments
Closed

Regex in $ref path is URLEncoded #69

hipstersmoothie opened this issue Jan 30, 2018 · 2 comments

Comments

@hipstersmoothie
Copy link
Contributor

When a schema has this structure:

            "patternProperties": {
                "!(somePattern)": {
                    "$ref": "#/definitions/somethingElse"
                }
            }

When this is being bundled, the $ref to 'somethingElse' will be replaced with the schema object and all references to patternProperties/!(somePattern)/..../.../ will be invalid.

Is it possible to not store anything inside pattern properties? if no refs were ever stored here it would fix the bug.

@JamesMessinger
Copy link
Member

I'm not sure I understand the issue here. It sounds like you're saying that you don't want json-schema-ref-parser to dereference certain references in your schema. Is that right?

@hipstersmoothie
Copy link
Contributor Author

I don't remember anymore! closing

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

No branches or pull requests

2 participants