You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
I try convert my RAML to OAS2 for use it for viewing in ReDoc project.
Result file not contains valid information about inherent relationship: User is Person and Employee is Person
I use simple code:
final WebApiBaseUnit result = Raml10.parse("file://../api-specs/raml/discrTest.raml").get();
Oas20.generateYamlFile(result, "file://oas2_out.yaml").get();
discrTest.raml contains:
#%RAML 1.0
title: My API With Types
types:
Person:
type: object
discriminator: kind # refers to the `kind` property of object `Person`
properties:
kind: string # contains name of the kind of a `Person` instance
name: string
Employee: # kind can equal `Employee`; default value for `discriminatorValue`
type: Person
properties:
employeeId: integer
User: # kind can equal `User`; default value for `discriminatorValue`
type: Person
properties:
userId: integer
/resource:
get:
responses:
200:
body:
application/json:
type: Person
I try convert my RAML to OAS2 for use it for viewing in ReDoc project.
Result file not contains valid information about inherent relationship:
User is Person and Employee is Person
I use simple code:
discrTest.raml
contains:As result
oas2_out.yaml
contains:But i expect like this:
The text was updated successfully, but these errors were encountered: