Skip to content

Stay more compatible with 1.0.0#10

Open
rockymontana wants to merge 1 commit into
mainfrom
bugfix/fix-strange-error-model
Open

Stay more compatible with 1.0.0#10
rockymontana wants to merge 1 commit into
mainfrom
bugfix/fix-strange-error-model

Conversation

@rockymontana

Copy link
Copy Markdown

This PR reverts the strange model that I made a PR for last month.
That one came with a lot of changes on structure and wasn't at all similar to version 1.0.0
Thank you @mattiasmelin for noticing that.

However, this one comes with some changes that makes me wonder if some of it is a bit redundant.
Title and errors.*.message seems like they could be the same thing
Will the errors ever contain more than one item in reality?

Comment thread models/errors-1.0.1.yaml
required:
- errors
- trace
- type

@mattiasmelin mattiasmelin Nov 27, 2023

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Any reason why type is required? Seems to be a breaking change compared to 1.0.0.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I guess it could be removed. It's not required per se, but if it's not precent it should default to about/blank - which is quite useless. Should I remove it?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

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.

3 participants