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

XPath version identifier feels a bit confusing #219

Open
dret opened this issue Jul 30, 2024 · 2 comments
Open

XPath version identifier feels a bit confusing #219

dret opened this issue Jul 30, 2024 · 2 comments
Labels
question Further information is requested

Comments

@dret
Copy link

dret commented Jul 30, 2024

It seems a little odd that one identifier for XPath is xpath-30 and the intention seems to be that it identifies XPath 3.1. There is an existing XPath 3.0 specification which may not be what's intended to be referenced with the xpath-30 string, or is it?

https://www.w3.org/TR/xpath-30/

@frankkilcommins
Copy link
Collaborator

Hey @dret,

By default, if criteria in Arazzo leverage a type of xpath, then XPath 3.1 is assumed. See https://spec.openapis.org/arazzo/latest.html#fixed-fields-9

If you want to downgrade on either JSON Path or XPath, then one can leverage the Criterion Expression Type Object. This object allows one to state their intention to use syntax conforming to an older variant. The expectations are:

Regarding the Criterion Expression Type Object, Arazzo states the following:

An object used to describe the type and version of an expression used within a Criterion Object. If this object is not defined, then the following defaults apply:

@frankkilcommins frankkilcommins added the question Further information is requested label Aug 13, 2024
@dret
Copy link
Author

dret commented Aug 14, 2024

Thanks, I think I did not fully understand the mechanics. But wouldn't it then be useful to also allows xpath-31 as a value even if that is the default? That would allow people to make their choice explicit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants