-
Notifications
You must be signed in to change notification settings - Fork 130
chore: flatten actor api spec #2698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -163,26 +163,24 @@ types: | |||||
| tags: unknown | ||||||
| build: optional<uuid> | ||||||
| build_tags: optional<unknown> | ||||||
| runtime: optional<CreateActorRuntimeRequest> | ||||||
| network: optional<CreateActorNetworkRequest> | ||||||
| resources: optional<localCommons.Resources> | ||||||
| lifecycle: optional<localCommons.Lifecycle> | ||||||
|
|
||||||
| CreateActorRuntimeRequest: | ||||||
| properties: | ||||||
| # arguments: optional<list<string>> | ||||||
| environment: optional<map<string, string>> | ||||||
| network: optional<CreateActorRuntimeNetworkRequest> | ||||||
|
|
||||||
| CreateActorRuntimeNetworkRequest: | ||||||
| properties: | ||||||
| endpoint_type: localCommons.EndpointType | ||||||
|
|
||||||
| CreateActorNetworkRequest: | ||||||
| properties: | ||||||
| mode: optional<localCommons.NetworkMode> | ||||||
| network_mode: optional<localCommons.NetworkMode> | ||||||
| network_endpoint_type: localCommons.EndpointType | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The to: This ensures that existing API consumers won't encounter validation errors when the field is not provided.
Suggested change
Spotted by Diamond |
||||||
| ports: optional<map<string, CreateActorPortRequest>> | ||||||
| wait_ready: optional<boolean> | ||||||
| wait_for_network_ready: optional<boolean> | ||||||
| resources: optional<localCommons.Resources> | ||||||
| kill_timeout: | ||||||
| docs: >- | ||||||
| The duration to wait for in milliseconds before killing the actor. | ||||||
| This should be set to a safe default, and can be overridden during a | ||||||
| DELETE request if needed. | ||||||
| type: optional<long> | ||||||
| durable: | ||||||
| docs: >- | ||||||
| If true, the actor will try to reschedule itself automatically in the event of a crash or a | ||||||
| datacenter failover. The actor will not reschedule if it exits successfully. | ||||||
| type: optional<boolean> | ||||||
|
|
||||||
| CreateActorPortRequest: | ||||||
| properties: | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
network_endpoint_typefield appears to be required in the flattened structure, whereas previously it was nested inside the optionalruntime.networkobject chain. This change could break backward compatibility for clients that don't specify this field. Consider making it optional withoptional<localCommons.EndpointType>to maintain backward compatibility with existing API consumers.Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in upstack