Skip to content

Commit

Permalink
Remove unnecessary titles from schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
vharmain committed Dec 27, 2024
1 parent 48ea5f7 commit 27d9e45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 4 additions & 8 deletions webapp/src/cljc/lipas/schema/sports_sites.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 2 additions & 4 deletions webapp/src/cljc/lipas/schema/sports_sites/location.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 27d9e45

Please sign in to comment.