Skip to content

Router extension config#231

Merged
mattoni merged 7 commits intomainfrom
blewis/eng-1742-update-api-spec-for-router-extension-config
Dec 13, 2023
Merged

Router extension config#231
mattoni merged 7 commits intomainfrom
blewis/eng-1742-update-api-spec-for-router-extension-config

Conversation

@blewisCycle
Copy link
Collaborator

Add HTTP Caching and HTTP Proxy to the HTTP router extension config

@@ -14,21 +14,26 @@ properties:
required:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this whole struct is part of the submit, and every part is 'nullable', lets have it be both 'nullable' and 'optional'. This is a change we will need to start making across the spec, because it's technically correct. The platform will treat any nullable type as also optional on submit, but will always RETURN null in that space.

Honestly, going forward, marking everything that is nullable as also optional would probably be safest. I can't think of a situation where it's important to have the distinction.

redirect:
nullable: true
type: object
required:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above. if they're 'nullable', make them also optional.

proxy:
nullable: true
type: object
required:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same thing

@mattoni mattoni merged commit 8adec1e into main Dec 13, 2023
@mattoni mattoni deleted the blewis/eng-1742-update-api-spec-for-router-extension-config branch December 13, 2023 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants