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

Record Type Field #345

Merged
merged 3 commits into from
Nov 18, 2024
Merged

Conversation

bencap
Copy link
Collaborator

@bencap bencap commented Oct 23, 2024

Client level views will now receive a recordType field, which indicates the name of the view model that was used to generate the output.

I considered adding this to the base model, but really these should only be defined on models returned to the client. There's some boiler plate here, but if we were to reduce the boiler plate by defining this property on the Pydantic base class our API documentation would imply users need to supply a recordType property within resources posted to our API. The additional code duplication seems well worth it to maintain our documentations' consistency.

Client level views will now receive a `recordType` field, which indicates the name of the view model
that was used to generate the output.
@bencap bencap added type: enhancement Enhancement to an existing feature app: backend Task implementation touches the backend labels Oct 23, 2024
@bencap bencap requested review from jstone-dev and sallybg October 23, 2024 20:16
@bencap bencap changed the base branch from main to release-2024.4.2 October 23, 2024 20:16
@bencap bencap linked an issue Oct 23, 2024 that may be closed by this pull request
@bencap bencap changed the title Feature/bencap/239/record type field Record Type Field Nov 4, 2024
@bencap bencap merged commit 6074a38 into release-2024.4.2 Nov 18, 2024
5 checks passed
@bencap bencap deleted the feature/bencap/239/record-type-field branch November 18, 2024 22:33
@bencap bencap mentioned this pull request Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app: backend Task implementation touches the backend type: enhancement Enhancement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding a "record type" field
2 participants