Skip to content

Commit 0f6ad5a

Browse files
committed
update breaking change in the API
1 parent ff86ad9 commit 0f6ad5a

File tree

5 files changed

+129
-86
lines changed

5 files changed

+129
-86
lines changed

UPDATING_OPENAPI_JSON.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This project uses a modified `openapi.json`. Please maintain these instructions
1616
1. Add a `cdp_enabled_contexts` property of type `array` of `string`s to the `Site` object.
1717
1. Add a `hud_enabled` property of type `boolean` to the `Site` object.
1818
1. Duplicate the `Site` object into `PartialSite` and remove the `required` properties.
19+
1. Remove `password`, `password_context`, and `password_hash` from the `required` array of the `Site` object.
1920
1. Change `updateSite` operation to use the `PartialSite` object as the request body schema (NOTE: not the response body schema).
2021
1. Change the type of `LogDrain.id` to `string`.
2122
1. Add the various `log_drains` paths from `bitballoon-openapi`'s `openapi.json` file.

internal/netlifyapi/api/openapi.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11056,9 +11056,6 @@ components:
1105611056
- managed_dns
1105711057
- name
1105811058
- notification_email
11059-
- password
11060-
- password_context
11061-
- password_hash
1106211059
- plan
1106311060
- processing_settings
1106411061
- screenshot_url

internal/netlifyapi/model_admin_site.go

Lines changed: 64 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/netlifyapi/model_site.go

Lines changed: 64 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)