|
PROFESSIONAL NEWSGROUPS WINDEV, WEBDEV and WINDEV Mobile |
| | | | | |
Home → WEBDEV 2025 → Variable de type YAML et membres sur plusieurs lignes. |
Variable de type YAML et membres sur plusieurs lignes. |
Started by sboudot, Sep., 22 2023 4:01 PM - No answer |
| |
| | | |
|
| |
Posted on September, 22 2023 - 4:01 PM |
Bonjour,
J'ai développé un éditeur openAPI pour décrire mes API REST développées en Windev.
J'ai codé toute la partie de génération du fichier .YAML pour le publier et c'est une usine à gaz.
J'ai vu dans la version 28 qu'il existait un type de données YAML et j'ai tenté de l'utiliser, mais je rencontre un problème.
avec openAPI il est possible de mettre "descriptions" sur plusieurs lignes, et même d'inclure du markdown (top)
mais je ne trouve pas la syntaxe pour que ca fonctionne avec le type de variable YAML.
Par exemple j'ai le swagger d'exemple :
openapi: 3.1.0 info: title: Swagger Petstore - OpenAPI 3.1 description: |- This is a sample Pet Store Server based on the OpenAPI 3.1 specification. You can find out more about Swagger at [https://swagger.io](https://swagger.io). In the third iteration of the pet store, we've switched to the design first approach! You can now help us improve the API whether it's by making changes to the definition itself or to the code. That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
Some useful links: - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore) - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
termsOfService: http://swagger.io/terms/
on voit bien la description qui commence par un | (pipe).
Si dans mon code je mets
y est un YAML y.info.description = [ |- This is a sample Pet Store Server based on the OpenAPI 3.1 specification. You can find out more about Swagger at [https://swagger.io](https: You can Now help us improve the API whether it's by making changes to the Definition itself OR to the code. That way, with time, we can improve the API IN general, AND expose some of the new features IN OAS3.
Some useful links: - [The Pet Store repository](https: - [The Source API Definition for the Pet Store](https: ]
la balise n'est pas pris en compte dans le y..SourceYAML
j'ai tenté avec une chaine concaténée, meme combat.
Quelqu'un aurait réussi à faire cela ??? |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|