Skip to content

Commit 99b44f6

Browse files
authored
Merge pull request #20 from mapswipe/feat/use-tc-typesync-cli
2 parents 38ffc10 + 7ce6e67 commit 99b44f6

File tree

18 files changed

+108
-478
lines changed

18 files changed

+108
-478
lines changed

functions/definition/announcement.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/toggle-corp/typesync/refs/tags/v1.0.0/schema.local.json
2+
13
FbAnnouncement:
24
model: alias
35
# path: v2/announcement

functions/definition/models.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# yaml-language-server: $schema=https://schema.typesync.org/v0.13.json
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/toggle-corp/typesync/refs/tags/v1.0.0/schema.local.json
22

33
# ENUM
44

@@ -150,8 +150,8 @@ FbObjRasterTileServer:
150150
apiKey:
151151
optional: true
152152
type: string
153-
# NOTE: @deprecated
154153
wmtsLayerName:
154+
deprecated: true
155155
optional: true
156156
type: string
157157
credits:
@@ -271,9 +271,9 @@ FbProjectUpdateInput:
271271
type: string
272272
projectTopic:
273273
type: string
274-
# TODO: We can remove this @deprecated
275274
projectTopicKey:
276275
type: string
276+
deprecated: true
277277
# NOTE: Name of the organisation
278278
requestingOrganisation:
279279
type: string

functions/definition/organisation.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/toggle-corp/typesync/refs/tags/v1.0.0/schema.local.json
2+
13
FbOrganisation:
24
model: alias
35
# path: organisations/{organisation_id}
@@ -10,8 +12,9 @@ FbOrganisation:
1012
description:
1113
optional: true
1214
type: string
13-
nameKey: # NOTE: this is deprecated
15+
nameKey:
1416
type: string
17+
deprecated: true
1518
abbreviation:
1619
optional: true
1720
type: string

functions/definition/team.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/toggle-corp/typesync/refs/tags/v1.0.0/schema.local.json
2+
13
FbTeam:
24
model: alias
35
# path: teams/{teamId}

functions/definition/tutorial/common.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/toggle-corp/typesync/refs/tags/v1.0.0/schema.local.json
2+
13
FbEnumInformationPageBlockType:
24
model: alias
35
type:
@@ -68,13 +70,14 @@ FbBaseTutorial:
6870
type:
6971
type: object
7072
fields:
71-
# deprecated
7273
exampleImage1:
7374
type: string
7475
optional: true
76+
deprecated: true
7577
exampleImage2:
7678
type: string
7779
optional: true
80+
deprecated: true
7881
contributorCount: # NOTE: intially zero
7982
type: int
8083
informationPages:
@@ -91,14 +94,16 @@ FbBaseTutorial:
9194
type: string
9295
projectId:
9396
type: string
94-
projectTopicKey: # NOTE: deprecated
97+
projectTopicKey:
9598
type: string
99+
deprecated: true
96100
status:
97101
type:
98102
type: literal
99103
value: tutorial
100-
tutorialDraftId: # NOTE: deprecated
104+
tutorialDraftId:
101105
type: string
106+
deprecated: true
102107

103108
FbBaseTutorialGroup:
104109
model: alias

functions/definition/tutorial/compare.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/toggle-corp/typesync/refs/tags/v1.0.0/schema.local.json
2+
13
FbCompareTutorial:
24
model: alias
35
type:

functions/definition/tutorial/completeness.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/toggle-corp/typesync/refs/tags/v1.0.0/schema.local.json
2+
13
FbCompletenessTutorial:
24
model: alias
35
type:

functions/definition/tutorial/find.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/toggle-corp/typesync/refs/tags/v1.0.0/schema.local.json
2+
13
FbFindTutorial:
24
model: alias
35
type:

functions/definition/tutorial/validate.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/toggle-corp/typesync/refs/tags/v1.0.0/schema.local.json
2+
13
FbValidateTutorial:
24
model: alias
35
type:

functions/definition/user.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/toggle-corp/typesync/refs/tags/v1.0.0/schema.local.json
2+
13
FbUserReadonlyType:
24
model: alias
35
docs: Represents user fields that cannot be updated from backend
@@ -8,14 +10,14 @@ FbUserReadonlyType:
810
type: timestamp
911
userName:
1012
type: string
11-
# NOTE: We can remove this @deprecated
1213
userNameKey:
1314
type: string
15+
deprecated: true
1416
username:
1517
type: string
16-
# NOTE: We can remove this @deprecated
1718
usernameKey:
1819
type: string
20+
deprecated: true
1921
accessibility:
2022
optional: true
2123
type: boolean

0 commit comments

Comments
 (0)