public SpecificationLoader()

in src/main/java/aws/cfn/codegen/SpecificationLoader.java [28:41]


    public SpecificationLoader() {
        jsonFactory = new MappingJsonFactory();
        mapperForJSON = new ObjectMapper(jsonFactory);
        mapperForJSON.configure(MapperFeature.USE_STD_BEAN_NAMING, true)
            .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
            .configure(DeserializationFeature.FAIL_ON_IGNORED_PROPERTIES, false)
            .configure(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES, true)
            .configure(SerializationFeature.FAIL_ON_SELF_REFERENCES, true)
            .configure(SerializationFeature.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED, true)
            .configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true)
            .setSerializationInclusion(JsonInclude.Include.NON_EMPTY);
        jsonFactory.setCodec(mapperForJSON);
        mapperForJSON.setPropertyNamingStrategy(PropertyNamingStrategy.UPPER_CAMEL_CASE);
    }