Skip to content

Conversation

@PotentialStyx
Copy link
Contributor

@PotentialStyx PotentialStyx commented Aug 4, 2025

Why

Some new services require - . and : in field names

What changed

When rendering a TypeName its value is normalized, and a new LiteralType dataclass was added to avoid that normalization.

Known limitation: this new normalization only works on output types.

Test plan

Run codegen on a schema with a field that has a - in its name

@PotentialStyx PotentialStyx requested a review from a team as a code owner August 4, 2025 21:20
@PotentialStyx PotentialStyx requested review from jackyzha0 and removed request for a team August 4, 2025 21:20
@PotentialStyx PotentialStyx requested a review from jackyzha0 August 5, 2025 17:56
Copy link
Member

@masad-frost masad-frost left a comment

Choose a reason for hiding this comment

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

wew thanks

@PotentialStyx PotentialStyx merged commit ea06e01 into main Aug 5, 2025
4 checks passed
@PotentialStyx PotentialStyx deleted the styx-fix-codegen branch August 5, 2025 22:42
@jackyzha0 jackyzha0 mentioned this pull request Aug 18, 2025
jackyzha0 added a commit that referenced this pull request Aug 18, 2025
Why
===

extension of #163 for encoder
types

What changed
============

fix the encoder by using the specialized_name with alias

Test plan
=========

wrote test
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.

4 participants