Skip to content

How load OpenApi split to many files #1194

@petrkasnal

Description

@petrkasnal

Hello,

I have my OpenAPI specification in separate files. I use references to load data. When I try to do so, I get an exception.
{"Unable to cast object of type 'SharpYaml.Serialization.YamlScalarNode' to type 'SharpYaml.Serialization.YamlMappingNode'."}

My openapi looks
`openapi: 3.0.3
info:
title: 'Test'
version: '1.0.0'

components:
schemas:
$ref: './AllSchemas.yml'

paths:
/api/orders:
$ref: './orders.yml'`

Can you please help me? Thank you

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions