0

This is my api blueprint file:

FORMAT: 1A    
# system API

Example

## Clients [/clients]
### Add Client [POST]

+ Request
    + Attributes
        + Include (ClientDetails)

+ Response 200 (application/json)

# Data Structures

## Client (object)
+ name (string, required)
+ phone (string, required) - `E.164 format validated with the regex ^\+[1-9]\d{1,14}$`
+ tax_id (number)


## ClientDetails (object)
+ One Of
    + client (object)
        + Include (Client)
        + save_client: true (boolean)

It renders this Body as an example, which is what I expect:

  "client": {
    "name": "John Smith",
    "phone": "+972504537442",
    "tax_id": 515975597,
    "save_client": true
  }

However it renders the attributes section like this:

enter image description here

Juvaly
  • 252
  • 1
  • 17

0 Answers0