Skip to content

fix: Angular client props nullability #2103

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jonimake
Copy link

@jonimake jonimake commented May 20, 2025

Status

READY

Description

Handle angular http client parameter nullability in a more robust way that doesn't force all schema properties to be non nullable. Adds a new utility type DeepNonNullable that is used to wrap all angular client query param props instead of making all scalars non-nullable in angular configuration.

Fix #2092 for reference

Todos

  • Tests
  • Documentation
  • Changelog Entry (unreleased)

Steps to Test or Reproduce

You can either run the tests for the project (there is a new test case for the happy path for angular in propts.test.ts) or you can generate the sample angular client. The http client query params should be wrapped with DeepNonNullable type to enforce no nulls can be set there.

jonimake added 2 commits May 20, 2025 21:48
Remove angular non-null scalar value handling and instead
use DeepNonNullable type to enforce non-null values for http params
in generated angular service code.
@melloware
Copy link
Collaborator

Running the build now!

@melloware
Copy link
Collaborator

@jonimake looks like tests are failing?

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.

Angular schema nullability definitions incorrectly done
2 participants