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

Add support for encoding numeric types as string #4020

Merged

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Jul 25, 2024

fix #3856

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jul 25, 2024

All changed packages have been documented.

  • @typespec/compiler
  • @typespec/openapi3
  • @typespec/xml
Show changes

@typespec/compiler - feature ✏️

Add support for encoding numeric types as string

@typespec/openapi3 - feature ✏️

Add support for encoding numeric types as string

@typespec/xml - feature ✏️

Add support for encoding numeric types as string

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

@timotheeguerin timotheeguerin added this pull request to the merge queue Jul 30, 2024
Merged via the queue into microsoft:main with commit 44fc030 Jul 30, 2024
22 checks passed
@timotheeguerin timotheeguerin deleted the encode-numeric-as-string branch July 30, 2024 21:35
@@ -134,3 +134,41 @@ model User {
</td>
</tr>
</table>

## Numeric types ( `int64`, `decimal128`, `float64`, etc.)
Copy link
Member

@MaryGao MaryGao Jul 31, 2024

Choose a reason for hiding this comment

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

Do we have a plan to add linter rule to warn that some safe numeric is marked as encode string e.g int16, or safeint?

Copy link
Member Author

Choose a reason for hiding this comment

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

good point filed na issue for an azure linter Azure/typespec-azure#1277

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.

Encoding numeric as string
4 participants