Hi, I would like to ask whether I have to explicitely set the value of
Let’s say I have I have these type definitions
#%RAML 1.0 title: My API With Types types: Person: type: object discriminator: true properties: name: string Employee: type: Person properties: employeeId: string User: type: Person properties: userId: string
Are the following data valid? In other words, do I have to set the
discriminator property explicitely or can the actual type be inferred from the properties available in my objects?
#%RAML 1.0 data: - name: A User userId: 111 - name: An Employee employeeId: 222