Skip to content

Conversation

@domenikjones
Copy link
Contributor

@domenikjones domenikjones commented Sep 13, 2021

Hi there,

We have found a problem concerning nullable fields which lead into more problems, if we are using required, readOnly and nullabel in combination.

To keep the possibility as before, strictRequiredChecks has been added.

  • strictRequiredChecks will allow undefined values
  • strictNullChecks will allow null values

We have implemented some changes:

  • Extend the field props with the values for nullable and readOnly
  • Changed the behavior of a field description based on these values (for undefined and null seperately)

A field is required when:

  • The field property readOnly is false and property is required is true or strictRequiredChecks is false

A field is nullable when:

  • The field property nullable is true or strictNullChecks is false

These changes might break implementations of other developers, since strictNullCheck has been moved to the nullable evaluation instead required aka undefined.

Minor changes and fixes:

  • Removed duplicated service header comments

Please let me know this poses a problem. Happy coding!

@domenikjones domenikjones marked this pull request as ready for review September 14, 2021 11:40
}
console.log(disableLint());

text = disableLint() + text
Copy link
Owner

Choose a reason for hiding this comment

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

why did you remove disableLint

@Manweill
Copy link
Owner

You should refer to the code itself to coding style, in prettier semi=false

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