Skip to content

Introduce ability to provide examples for JsonPatchDocument #152

@ErikasKontenis

Description

@ErikasKontenis

Simple implementation guide how to setup PATCH endpoint: https://learn.microsoft.com/en-us/aspnet/core/web-api/jsonpatch?view=aspnetcore-9.0

It would be super cool to have ability to provide examples for PATCH endpoint in such manner:
[ { "op": "add", "path": "/customerName", "value": "Barry" }, { "op": "add", "path": "/orders/-", "value": { "orderName": "Order2", "orderType": null } } ]

Current implementation using IExampleProvider provides invalid syntax example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions