Closed rngtng closed 8 months ago
the rule I reference is here: https://github.com/jmlue42/spectral-jsonapi-ruleset/blob/main/rules/jsonapi-document-structure-resource-identification.yaml.old#L12
btw. why has the file the suffix old
?
Another insight, looks like the rule isn't triggered at all for non allOf
cases, hence feels like it's not in used in std cases. For now we'd ignore it..
Apologies for such a long response time. The status of the project has been in flux for awhile and has just gone through another overhaul to be Stoplight.io styleguide friendly. Lots of adjustments and additions. Your issue should be at least partially taken care of. If not, please open a new issue so we can better track it.
No worries. Thanks for you efforts
First, thanks a lot for your work you put into this ruleset! I unfortunately encountered an issue I need you help with. See the given spec:
When running spectral with you linter rule I get this error
But debugging the json path, all properties
type
,id
andfoo
are selected. How come this rule fails? Any idea?