Everit schema builder includes unset properties as null
问题 Trying to build and use the Schema object: Schema rootSchema = ObjectSchema.builder() .additionalProperties(true) .build(); It seems to work fine until I try to serialize it as a string and then to reload using the SchemaLoader: String json = objectMapper.writeValueAsString(rootSchema); JSONObject schemaObject = new JSONObject(json); Schema schema = SchemaLoader.load(schemaObject); The problem is that the unset keywords are serialized as null: { "title" : null, "description" : null, "id" :