Guidance on possible linting rules #1898
Unanswered
danielbecroft
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We're experimenting with spectral to see if it can solve some of our API consistency issues. A couple of the items we're after are:
addressneeds to reference a named object, not define the properties inlineformatbased on property names, e.g in the below snippet, any property that ends withDateshould have aformat: datespecified, anything ending inGUIDshould haveformat: guidspecified.Are these checks possible with the spectral toolkit? I know they'd need custom rules, but doing a sanity check before even attempting them.
All reactions