JSON doesn't contain "schemes"

Hello

currently TROHttpApiRodlConverter doesn’t generate the “schemes” clause for a JSON file.
As I see it’s because the TROHttpApiRodlConverter.WriteSchemesArray method contains the code commented.
Please, could you explain how I can get “schemes” in my JSON?

we use RemObjects SDK for Delphi v9.3.0.1343.

Best regards

from OpenAPI-Specification/versions/2.0.md at main · OAI/OpenAPI-Specification · GitHub :

schemes | [string] | The transfer protocol of the API. Values MUST be from the list: “http”, “https”, “ws”, “wss”. If the schemes is not included, the default scheme to be used is the one used to access the Swagger definition itself.

we use default scheme. if you dislike this case, you can update code inside TROHttpApiRodlConverter.WriteSchemesArray and specify required protocols.

we use default scheme. if you dislike this case, you can update code inside TROHttpApiRodlConverter.WriteSchemesArray and specify required protocols.

What is an option to add custom schemes without directly modifying WriteSchemesArray?
Am I right that OnSchemaComplete event could be used for this?

yes, you are right. this event is designed for such things

thank you, Evgeny. The approach with OnSchemaComplete fulfills our needs.

BTW when the next “spring” version of the SDK is planned to ship?

regards

from https://community.embarcadero.com/blogs/entry/exciting-rad-studio-developments-in-2018 :

We are pleased to share details for Release 3 of 10.2 Tokyo (i.e. 10.2.3), targeted for the first quarter of 2018.

so we have to release SDK too …