Skip to content

Include schemaType when exporting resource documents#1805

Merged
carolynvs merged 1 commit intogetporter:release/v1from
carolynvs:schema-version2
Oct 18, 2021
Merged

Include schemaType when exporting resource documents#1805
carolynvs merged 1 commit intogetporter:release/v1from
carolynvs:schema-version2

Conversation

@carolynvs
Copy link
Member

@carolynvs carolynvs commented Oct 18, 2021

What does this change

When we export a resource, like porter installation show, include a schemaType field that indicates the resource type: Installation, CredentialSet or ParameterSet. This field isn't used by Porter, but helps editors determine the schema of the document.

Since this is a new optional field (that is not stored in the database) it is not a breaking change.

What issue does it fix

Closes #1799

Notes for the reviewer

I also tweaked how we store documents to ensure that the schema version is always set.

Checklist

  • Unit Tests
  • Documentation
  • Schema (porter.yaml)

@carolynvs carolynvs marked this pull request as ready for review October 18, 2021 17:26
When we export a resource, like porter installation show, include a
schemaType field that indicates the resource type: Installation,
CredentialSet or ParameterSet. This field isn't used by Porter, but
helps editors determine the schema of the document.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs carolynvs merged commit 349d3a0 into getporter:release/v1 Oct 18, 2021
@carolynvs carolynvs deleted the schema-version2 branch October 18, 2021 21:31
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