core
core copied to clipboard
feat (ApiTestCase): Assert Item|collection JsonSchema with SerializerContext
| Q | A |
|---|---|
| Branch? | main |
| Tickets | ~ |
| License | MIT |
| Doc PR | #todo |
When a JsonSchema needs to be tested over specific serialization context, one has to rewrite it's own methods. This allows to pass the serializationContext to create the right JsonSchema during testing.
Shouldn't we get the right operation from the resource instead? By default it will take the serialization context from it.
@alanpoulain That's already the case I reckon :) It's an addition to allow to force the context :)
Yes you're right, sorry. Do you have a specific use case then?
Dynamic groups for instance which cannot be extrapolated from the operation only.
We should probably wait for 3.0 to be released to merge this then (it will be available in 3.1).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.