Skip to content

Commit 667a2d5

Browse files
fix: changed data type to preserve order of schema attributes (#585)
Co-authored-by: Sabarinathan S <[email protected]>
1 parent 268da37 commit 667a2d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/networknt/schema/PropertiesValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
public class PropertiesValidator extends BaseJsonValidator implements JsonValidator {
3030
public static final String PROPERTY = "properties";
3131
private static final Logger logger = LoggerFactory.getLogger(PropertiesValidator.class);
32-
private final Map<String, JsonSchema> schemas = new HashMap<String, JsonSchema>();
32+
private final Map<String, JsonSchema> schemas = new LinkedHashMap<>();
3333

3434
public PropertiesValidator(String schemaPath, JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext) {
3535
super(schemaPath, schemaNode, parentSchema, ValidatorTypeCode.PROPERTIES, validationContext);

0 commit comments

Comments
 (0)