Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
141
Issues
141
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
bc17efc9
Commit
bc17efc9
authored
Jun 17, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX BUG Swagger] TODO : remove type homonymes
parent
37fb1b8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Update.hs
src/Gargantext/API/Node/Update.hs
+6
-6
No files found.
src/Gargantext/API/Node/Update.hs
View file @
bc17efc9
...
...
@@ -30,7 +30,7 @@ import Test.QuickCheck.Arbitrary
------------------------------------------------------------------------
data
UpdateNodeParams
=
UpdateNodeParamsList
{
methodList
::
Method
}
|
UpdateNodeParamsGraph
{
methodGraph
::
Metric
}
|
UpdateNodeParamsGraph
{
methodGraph
::
GraphMetric
}
|
UpdateNodeParamsTexts
{
methodTexts
::
Granularity
}
|
UpdateNodeParamsBoard
{
methodBoard
::
Charts
}
deriving
(
Generic
)
...
...
@@ -40,7 +40,7 @@ data Method = Basic | Advanced | WithModel
deriving
(
Generic
,
Eq
,
Ord
,
Enum
,
Bounded
)
----------------------------------------------------------------------
data
Metric
=
Order1
|
Order2
data
Graph
Metric
=
Order1
|
Order2
deriving
(
Generic
,
Eq
,
Ord
,
Enum
,
Bounded
)
----------------------------------------------------------------------
...
...
@@ -70,10 +70,10 @@ instance ToSchema Method
instance
Arbitrary
Method
where
arbitrary
=
elements
[
minBound
..
maxBound
]
instance
FromJSON
Metric
instance
ToJSON
Metric
instance
ToSchema
Metric
instance
Arbitrary
Metric
where
instance
FromJSON
Graph
Metric
instance
ToJSON
Graph
Metric
instance
ToSchema
Graph
Metric
instance
Arbitrary
Graph
Metric
where
arbitrary
=
elements
[
minBound
..
maxBound
]
instance
FromJSON
Granularity
...
...
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