Skip to main content

OpenApi incorrect format


Forum|alt.badge.img+4

Your OpenApi yaml files:

www.revenuecat.com/docs/redocusaurus/plugin-redoc-0.yaml

www.revenuecat.com/docs/redocusaurus/plugin-redoc-1.yaml

www.revenuecat.com/docs/redocusaurus/plugin-redoc-2.yaml

www.revenuecat.com/docs/redocusaurus/plugin-redoc-3.yaml

lack format specifier for integers explained in OpenAPI standard:

https://spec.openapis.org/oas/v3.1.0.html#data-types

This causes problem for Auto-generation of API layer for languages like C# (ASP.NET).

 

E.g. in file plugin-redoc-0

is a field `purchased_at` specified as:

purchased_at:
  description: The date when the purchase was made in ms since epoch
  nullable: false
  type: integer
  example: 1658399423658

This field is too long for integer (int32). Please specify the missing `format` attribute: `int64` into fields like this.

 

You already closed similar issue without any explanation and reasoning. Can you please keep this opened or ideally fix it ?

 

Thank you.

 

PS: I am maintainer of .NET MAUI RevenueCat library https://github.com/Kebechet/Maui.RevenueCat.InAppBilling and I would like to expose your RESP API also to .NET devs. This makes it really hard, because I dont have a capacity to do it manually and for auto-generators to work correctly the documentation needs to specify correct format.

This post has been closed for comments

2 replies

antonio
RevenueCat Staff
Forum|alt.badge.img+4
  • RevenueCat Staff
  • 37 replies
  • March 24, 2025

Hi ​@Kebechet ,

 

Thanks so much for reporting this — we’ve just pushed a fix to include the missing int64 formats for relevant integer fields.

 

You already closed a similar issue without any explanation and reasoning. Can you please keep this opened or ideally fix it?

 

I believe that previous post was automatically closed due to inactivity — sorry about that! We appreciate you bringing it up again.

 

Let us know if you run into any other issues, and thanks for maintaining the .NET MAUI RevenueCat library ! 


Forum|alt.badge.img+4
  • Author
  • New Member
  • 4 replies
  • April 1, 2025

I just tested it and works correctly, thank you very much!

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings