OpenAPISchema.anyOf constructor

OpenAPISchema.anyOf(
  1. List<OpenAPISchema> schemas, {
  2. Map<String, Object?>? additional,
})

Creates an anyOf schema.

Implementation

factory OpenAPISchema.anyOf(
  List<OpenAPISchema> schemas, {
  Map<String, Object?>? additional,
}) => OpenAPISchema._({...?additional, 'anyOf': schemas});