diff --git a/webapp/src/cljc/lipas/schema/sports_sites.cljc b/webapp/src/cljc/lipas/schema/sports_sites.cljc index 3606a39f5..45d23b67a 100644 --- a/webapp/src/cljc/lipas/schema/sports_sites.cljc +++ b/webapp/src/cljc/lipas/schema/sports_sites.cljc @@ -17,23 +17,19 @@ [:int {:min 0 :label "Lipas-id" :description "Unique identifier of sports facility in LIPAS system."}]) (def owner - (into [:enum {:title "Onwer" - :description "Owner entity of the sports facility."}] + (into [:enum {:description "Owner entity of the sports facility."}] (keys owners/all))) (def owners - [:set {:title "Admins" - :description (-> owner second :description)} + [:set {:description (-> owner second :description)} #'owner]) (def admin - (into [:enum {:title "Admin" - :description "Administrative entity of the sports facility."}] + (into [:enum {:description "Administrative entity of the sports facility."}] (keys admins/all))) (def admins - [:set {:title "Admins" - :description (-> admin second :description)} + [:set {:description (-> admin second :description)} #'admin]) (def name [:string {:description "The official name of the sports facility" diff --git a/webapp/src/cljc/lipas/schema/sports_sites/location.cljc b/webapp/src/cljc/lipas/schema/sports_sites/location.cljc index 334cff3c8..3a62cd767 100644 --- a/webapp/src/cljc/lipas/schema/sports_sites/location.cljc +++ b/webapp/src/cljc/lipas/schema/sports_sites/location.cljc @@ -25,13 +25,11 @@ (def city-code - (into [:enum {:title "CityCode" - :description "Official municipality identifier https://stat.fi/fi/luokitukset/kunta/kunta_1_20240101"}] + (into [:enum {:description "Official municipality identifier https://stat.fi/fi/luokitukset/kunta/kunta_1_20240101"}] (sort (keys cities/by-city-code)))) (def city-codes - [:set {:title "CityCodes" - :description (-> city-code second :description)} + [:set {:description (-> city-code second :description)} city-code]) (defn make-location-schema [feature-schema geom-type]