package com.onthegomap.planetiler.custommap.configschema; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Collection; import java.util.Map; /** * An object representation of a vector tile server schema. This object is mapped to a schema YML file using SnakeYAML. */ public record SchemaConfig( @JsonProperty("schema_name") String schemaName, @JsonProperty("schema_description") String schemaDescription, String attribution, Map sources, @JsonProperty("tag_mappings") Map inputMappings, Collection layers ) { private static final String DEFAULT_ATTRIBUTION = """ © OpenStreetMap contributors """.trim(); @Override public String attribution() { return attribution == null ? DEFAULT_ATTRIBUTION : attribution; } }