Skip to content

Action api specification should include required attributes at a deeper level to facilitate effective schema validation #71

@nirmay

Description

@nirmay

Consider /beckn/init API spec, it defines that message.order is required in the payload. init spec

Instead of making order object to be required if it lists order.payment, order.fulfillment and all necessary sub-objects as required, then that allows for more effective schema validation.

Even the older v1 spec follows the less granular approach.

This approach also enables downstream network specific api payload validation instead of defining such nuances in the respective TSDs or example payloads.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions