You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @colesimmons! I think I can clarify this one. The focus here is that an operation.sample is required unlessdisplay.hidden is true. That nuance is covered in the description of BasicActionOperationSchema.
What does a sample of data look like? Will use resource sample if missing. Requirement waived if display.hidden is true or if this belongs to a resource that has a top-level sample
@codebycaleb Ah, thanks Caleb! That makes sense, though I still wouldn't consider that an anti-example as it could belong to a resource that has a top-level sample.
I'll go ahead and close this since it does answer my question. I'll try to put together a PR when I have a chance that will hopefully clarify some of the points where I got stuck while working on Abstract's integration.
Appreciate that - the examples and anti-exampes are a little confusing in the first place because they're only there to show json that is either valid or invalid based on the schema. So they're not examples in the traditional sense of showing the reader a basic way to do something.
Consider the examples and anti-examples for ResourceMethodCreateSchema.
The only difference between the 2nd example and the anti-example is the presence of
hidden
indisplay
, which is a valid key for BasicDisplaySchema.The text was updated successfully, but these errors were encountered: