[java] Fix enum ref issue in array default value (#14638)

* fix enum ref issue in array default value (java)

* update samples

* update tests

* update samples
This commit is contained in:
William Cheng
2023-02-07 21:49:30 +08:00
committed by GitHub
parent cda3517891
commit bbc42696ab
38 changed files with 918 additions and 18 deletions

View File

@@ -377,9 +377,22 @@ components:
type: object
xml:
name: pet
StringEnumRef:
enum:
- success
- failure
- unclassified
type: string
DefaultValue:
description: to test the default value of properties
properties:
array_string_enum_ref_default:
default:
- success
- failure
items:
$ref: '#/components/schemas/StringEnumRef'
type: array
array_string_enum_default:
default:
- success