Skip to content

feat: Add validation logic for subscribe#163

Merged
eberle1080 merged 3 commits into
mainfrom
feat/validate-subscriptions
Mar 20, 2025
Merged

feat: Add validation logic for subscribe#163
eberle1080 merged 3 commits into
mainfrom
feat/validate-subscriptions

Conversation

@eberle1080

@eberle1080 eberle1080 commented Mar 20, 2025

Copy link
Copy Markdown
Contributor

This adds validation logic for the Subscribe action. This lets us ensure that amp.yaml files have a certain baseline sanity. This was necessary so that Subscribe-only files were allowed to exist.

@eberle1080 eberle1080 requested a review from laurenzlong March 20, 2025 22:21
@eberle1080 eberle1080 enabled auto-merge (squash) March 20, 2025 22:21
Comment thread files/manifest.go
"The field 'objectName' is required")
}

if obj.Destination == "" {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove everything after this line.

Comment thread files/manifest.go
"The field 'enabled' is required")
}

switch *ace.Enabled {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove all the switch statements,

@eberle1080 eberle1080 merged commit 98155c8 into main Mar 20, 2025
@eberle1080 eberle1080 deleted the feat/validate-subscriptions branch March 20, 2025 22:27
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