Skip to content
Permalink
Browse files

renamed releasedDate to publicationDate

  • Loading branch information
jahzielv committed Aug 1, 2019
1 parent af306a0 commit b3afdcac74aa3ccce9489daddb0154aa02832687
Showing with 13 additions and 13 deletions.
  1. +2 −2 example.json
  2. +2 −2 schema.json
  3. +6 −6 schema/schema.go
  4. +3 −3 ui.json
@@ -99,7 +99,7 @@
{
"name": "Deep learning and Artificial Intelligence",
"publisher": "XYZ, Computer Magazine",
"releaseDate": "2015-08-01",
"publicationDate": "2015-08-01",
"resources": [
{
"url": "http://www.example.com/my-example-slides/",
@@ -222,4 +222,4 @@
"lastModified": "2017-06-29T15:53:01+01:00",
"uuid": "078c39ce-23ee-4970-9637-c07379132dce"
}
}
}
@@ -612,8 +612,8 @@
"description": "name of the publisher",
"type": "string"
},
"releaseDate": {
"description": "release date of publication",
"publicationDate": {
"description": "date of publication",
"format": "date",
"type": "string"
},
@@ -83,12 +83,12 @@ type volunteerSchema struct {
}

type publicationSchema struct {
Name string `json:"name" schema:"description:name of the publication;example:Deep learning and Artificial Intelligence"`
Publisher string `json:"publisher" schema:"description:name of the publisher;example:XYZ, Computer Magazine"`
ReleaseDate string `json:"releaseDate,omitempty" schema:"description:release date of publication;format:date;example:2015-08-01"`
Resources []resourceSchema `json:"resources,omitempty" schema:"description:multiple resources with label"`
URL string `json:"url,omitempty" schema:"description:url of the publication;format:uri;example:http://www.computer.org.example.com/csdl/mags/co/2015/10/rx069-abs.html"`
Summary string `json:"summary,omitempty" schema:"description:short summary of the publication;example:Discussion of the advent of deep learning and artificial intelligence"`
Name string `json:"name" schema:"description:name of the publication;example:Deep learning and Artificial Intelligence"`
Publisher string `json:"publisher" schema:"description:name of the publisher;example:XYZ, Computer Magazine"`
PublicationDate string `json:"publicationDate,omitempty" schema:"description:date of publication;format:date;example:2015-08-01"`
Resources []resourceSchema `json:"resources,omitempty" schema:"description:multiple resources with label"`
URL string `json:"url,omitempty" schema:"description:url of the publication;format:uri;example:http://www.computer.org.example.com/csdl/mags/co/2015/10/rx069-abs.html"`
Summary string `json:"summary,omitempty" schema:"description:short summary of the publication;example:Discussion of the advent of deep learning and artificial intelligence"`
}

type legalSchema struct {
@@ -464,7 +464,7 @@
"publisher": {
"ui:placeholder": "XYZ, Computer Magazine"
},
"releaseDate": {
"publicationDate": {
"ui:placeholder": "2015-08-01"
},
"resources": {
@@ -487,7 +487,7 @@
"ui:order": [
"name",
"publisher",
"releaseDate",
"publicationDate",
"resources",
"url",
"summary"
@@ -658,4 +658,4 @@
}
}
}
}
}

0 comments on commit b3afdca

Please sign in to comment.
You can’t perform that action at this time.