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

Quando o tipo do dado é array de strings (tipo não objeto) dá erro #11

Open
oliveira-michel opened this issue Mar 4, 2022 · 0 comments

Comments

@oliveira-michel
Copy link
Owner

documentos:

          type: array

          description: "Lista de documentos de formalização para adesão/cancelamento de um produto."

          items:

            type: string

            description: 'Identificador do documento no EMC.'

            example: '4451e13a-c640-483d-9fd6-fafa48e6c337'

Erro:

StackTrace: Safra.Gsa.Jhulis.Core.Exceptions.InvalidOpenApiDocumentException: An error has ocurred during the Open API document parsing. Please, check if the document structure is valid. Details: [documentos] The property documentos is declared as array, but the array type is not defined. at Safra.Gsa.Jhulis.Core.Helpers.Extensions.OpenApiDocumentExtensions.GetInnerProperties(String path, String operation, String responseCode, String content, String propertiesChain, IDictionary2 properties, ProcessingLevel processingLevel, Int32 maxDepth, Int32 currentDepth) in /app/jenkins/workspace/areacorp/GSA/Safra.Gsa.Jhulis/3.1/Safra.Gsa.Jhulis/Jhulis.Core/Helpers/Extensions/OpenApiDocumentExtensions.cs:line 156 at Safra.Gsa.Jhulis.Core.Helpers.Extensions.OpenApiDocumentExtensions.GetInnerProperties(String path, String operation, String responseCode, String content, String propertiesChain, IDictionary2 properties, ProcessingLevel processingLevel, Int32 maxDepth, Int32 currentDepth) in /app/jenkins/workspace/areacorp/GSA/Safra.Gsa.Jhulis/3.1/Safra.Gsa.Jhulis/Jhulis.Core/Helpers/Extensions/OpenApiDocumentExtensions.cs:line 122 at Safra.Gsa.Jhulis.Core.Helpers.Extensions.OpenApiDocumentExtensions.GetAllBodyProperties(OpenApiDocument document, IOptions`1 ruleSettings, OpenApiDocumentCache cache) in /app/jenkins/workspace/areacorp/GSA/Safra.Gsa.Jhulis/3.1/Safra.Gsa.Jhulis/Jhulis.Core/Helpers/Extensions/OpenApiDocumentExtensions.cs:line 74 at Safra.Gsa.Jhulis.Core.Rules.NestingDepthRule.ExecuteRuleLogic() in /app/jenkins/workspace/areacorp/GSA/Safra.Gsa.Jhulis/3.1/Safra.Gsa.Jhulis/Jhulis.Core/Rules/NestingDepthRule.cs:line 28 at Safra.Gsa.Jhulis.Core.Rules.RuleBase.Execute() in /app/jenkins/workspace/areacorp/GSA/Safra.Gsa.Jhulis/3.1/Safra.Gsa.Jhulis/Jhulis.Core/Rules/RuleBase.cs:line 76

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

No branches or pull requests

1 participant