Skip to content

Commit

Permalink
sdk: add an overlay to remove readOnly flags
Browse files Browse the repository at this point in the history
Prevents Speakeasy from generating "Input" models because of webhooks schemas which are wrongfully considered as payload schemas (due to how they're documented in FastAPI).

We've our own hygiene of separating input and output schemas, so this should not harm the validity of the output SDK.
  • Loading branch information
frankie567 committed Nov 13, 2024
1 parent 7f82d0d commit 08ae9cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sdk/overlays/read_only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
overlay: 1.0.0
info:
title: Overlay to automatically remove "readOnly" from schemas properties
version: 0.0.1
actions:
- target: "$.components.schemas.*.properties.*.readOnly"
remove: true

0 comments on commit 08ae9cc

Please sign in to comment.