January 3, 2025

0.46.18

(fix): If an object or request is annotated with extra-properties: true then the user can provide an example that includes extra properties that are no longer in the schema.

For example, check out this fern definition

service.yml
1types:
2 Item:
3 extra-properties: true
4 properties:
5 id: string
6
7
8service:
9 auth: false
10 base-path: ""
11 endpoints:
12 create:
13 method: POST
14 path: /item
15 request:
16 name: CreateItemRequest
17 body:
18 extra-properties: true
19 properties:
20 id: string
21 response:
22 type: Item
23 examples:
24 - name: "Item"
25 request:
26 id: "123"
27 foo: "bar" # extra property in the example
28 response:
29 body:
30 id: "123"
31 foo: "bar" # extra property in the example