Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ogptoolbox-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
53
Issues
53
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ogptoolbox
ogptoolbox-ui
Commits
519f8ac5
Commit
519f8ac5
authored
Apr 25, 2017
by
Emmanuel Raviart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sort decoders by name.
parent
cbe50d05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
30 deletions
+30
-30
src/Decoders.elm
src/Decoders.elm
+30
-30
No files found.
src/Decoders.elm
View file @
519f8ac5
...
...
@@ -35,23 +35,6 @@ bijectiveCardReferenceDecoder =
|
:
(
field
"
reverseKeyId"
string
)
popularTagDecoder
:
Decoder
PopularTag
popularTagDecoder
=
succeed
PopularTag
|
:
(
field
"
count"
float
)
|
:
(
field
"
tagId"
string
)
popularTagsDataDecoder
:
Decoder
PopularTagsData
popularTagsDataDecoder
=
(
field
"
data"
(
succeed
PopularTagsData
|
:
(
field
"
popularity"
(
list
popularTagDecoder
))
|
:
(
oneOf
[
(
field
"
values"
(
dict
typedValueDecoder
))
,
succeed
Dict
.
empty
])
)
)
cardAutocompletionDecoder
:
Decoder
CardAutocompletion
cardAutocompletionDecoder
=
succeed
CardAutocompletion
...
...
@@ -107,6 +90,12 @@ collectionDecoder =
|
:
(
field
"
name"
string
)
dataIdBodyDecoder
:
Decoder
DataIdBody
dataIdBodyDecoder
=
succeed
DataIdBody
|
:
(
field
"
data"
dataIdDecoder
)
dataIdDecoder
:
Decoder
DataId
dataIdDecoder
=
succeed
DataId
...
...
@@ -119,10 +108,13 @@ dataIdDecoder =
|
:
oneOf
[
(
field
"
values"
(
dict
typedValueDecoder
))
,
succeed
Dict
.
empty
]
dataIdBodyDecoder
:
Decoder
DataIdBody
dataIdBodyDecoder
=
succeed
DataIdBody
|
:
(
field
"
data"
dataIdDecoder
)
dataIdsBodyDecoder
:
Decoder
DataIdsBody
dataIdsBodyDecoder
=
succeed
DataIdsBody
|
:
oneOf
[
(
field
"
count"
int
)
,
succeed
0
]
|
:
(
field
"
data"
dataIdsDecoder
)
|
:
oneOf
[
(
field
"
limit"
int
)
,
succeed
0
]
|
:
oneOf
[
(
field
"
offset"
int
)
,
succeed
0
]
dataIdsDecoder
:
Decoder
DataIds
...
...
@@ -149,20 +141,28 @@ dataIdsDecoder =
)
dataIdsBodyDecoder
:
Decoder
DataIdsBody
dataIdsBodyDecoder
=
succeed
DataIdsBody
|
:
oneOf
[
(
field
"
count"
int
)
,
succeed
0
]
|
:
(
field
"
data"
dataIdsDecoder
)
|
:
oneOf
[
(
field
"
limit"
int
)
,
succeed
0
]
|
:
oneOf
[
(
field
"
offset"
int
)
,
succeed
0
]
messageBodyDecoder
:
Decoder
String
messageBodyDecoder
=
(
field
"
data"
string
)
popularTagDecoder
:
Decoder
PopularTag
popularTagDecoder
=
succeed
PopularTag
|
:
(
field
"
count"
float
)
|
:
(
field
"
tagId"
string
)
popularTagsDataDecoder
:
Decoder
PopularTagsData
popularTagsDataDecoder
=
(
field
"
data"
(
succeed
PopularTagsData
|
:
(
field
"
popularity"
(
list
popularTagDecoder
))
|
:
(
oneOf
[
(
field
"
values"
(
dict
typedValueDecoder
))
,
succeed
Dict
.
empty
])
)
)
propertyDecoder
:
Decoder
Property
propertyDecoder
=
succeed
Property
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment