Skip to content
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

Initialise ServingModelArtifacts in run completion events #282

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

jmendesky
Copy link
Collaborator

@jmendesky jmendesky commented Sep 4, 2023

Run Completion Events currently contain a null value for servingModelArtifacts if none is produced. To simplify tooling integration, it is preferrable to have an empty array instead.

From:

{"servingModelArtifacts":null}

To:

{"servingModelArtifacts":[]}

Note

Until Go JSON marshalling supports golang/go#27589, initialising a slice is the only way to marshal empty arrays into JSON instead of null values.

Until go JSON marshalling supports golang/go#27589, initialising a slice
is the only way to marshal empty arrays into JSON instead of null values.
@jmendesky jmendesky merged commit f1822ae into master Sep 4, 2023
@jmendesky jmendesky deleted the initialise-serving-model-artifacts branch September 4, 2023 09:33
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