{"action":"created","issue":{"url":"https://api.github.com/repos/hbz/oerworldmap/issues/690","repository_url":"https://api.github.com/repos/hbz/oerworldmap","labels_url":"https://api.github.com/repos/hbz/oerworldmap/issues/690/labels{/name}","comments_url":"https://api.github.com/repos/hbz/oerworldmap/issues/690/comments","events_url":"https://api.github.com/repos/hbz/oerworldmap/issues/690/events","html_url":"https://github.com/hbz/oerworldmap/issues/690","id":160680327,"number":690,"title":"Cannot add geo coordinates","user":{"login":"trugwaldsaenger","id":6639965,"avatar_url":"https://avatars.githubusercontent.com/u/6639965?v=3","gravatar_id":"","url":"https://api.github.com/users/trugwaldsaenger","html_url":"https://github.com/trugwaldsaenger","followers_url":"https://api.github.com/users/trugwaldsaenger/followers","following_url":"https://api.github.com/users/trugwaldsaenger/following{/other_user}","gists_url":"https://api.github.com/users/trugwaldsaenger/gists{/gist_id}","starred_url":"https://api.github.com/users/trugwaldsaenger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trugwaldsaenger/subscriptions","organizations_url":"https://api.github.com/users/trugwaldsaenger/orgs","repos_url":"https://api.github.com/users/trugwaldsaenger/repos","events_url":"https://api.github.com/users/trugwaldsaenger/events{/privacy}","received_events_url":"https://api.github.com/users/trugwaldsaenger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-16T14:47:00Z","updated_at":"2016-06-24T15:24:53Z","closed_at":null,"body":"When trying to add geocoordinates to an organization (e.g. https://oerworldmap.org/resource/urn:uuid:f93a7a03-c693-4225-a2f9-aa198d40044d), I get an error message. As far as I know, @karindr can add geocoordinates without problems.\r\n\r\nThe data you entered is invalid\r\nWe are working hard on better error reporting. But until that is done, you are unfortunately stuck with this:\r\ncom.github.fge.jsonschema.core.report.ListProcessingReport: failure\r\n--- BEGIN MESSAGES ---\r\nerror: instance type (object) does not match any allowed primitive type (allowed: [\"integer\",\"number\"])\r\n    level: \"error\"\r\n    schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/GeoCoordinates/properties/lat\"}\r\n    instance: {\"pointer\":\"/location/geo/lat\"}\r\n    domain: \"validation\"\r\n    keyword: \"type\"\r\n    found: \"object\"\r\n    expected: [\"integer\",\"number\"]\r\nerror: instance type (object) does not match any allowed primitive type (allowed: [\"integer\",\"number\"])\r\n    level: \"error\"\r\n    schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/GeoCoordinates/properties/lon\"}\r\n    instance: {\"pointer\":\"/location/geo/lon\"}\r\n    domain: \"validation\"\r\n    keyword: \"type\"\r\n    found: \"object\"\r\n    expected: [\"integer\",\"number\"]\r\n---  END MESSAGES  ---\r\n{\r\n  \"image\" : \"https://upload.wikimedia.org/wikipedia/de/thumb/8/8e/Cern_Logo_black.svg/400px-Cern_Logo_black.svg.png\",\r\n  \"@type\" : \"Organization\",\r\n  \"provides\" : [ {\r\n    \"image\" : \"https://zenodo.org/img/logos/zenodo-gradient-2500.jpg\",\r\n    \"license\" : [ {\r\n      \"@type\" : \"Concept\",\r\n      \"name\" : [ {\r\n        \"@value\" : \"Creative Commons Attribution\",\r\n        \"@language\" : \"en\"\r\n      } ],\r\n      \"@id\" : \"https://github.com/hbz/oerworldmap/public/json/licenses.json#cc-by\"\r\n    }, {\r\n      \"@type\" : \"Concept\",\r\n      \"name\" : [ {\r\n        \"@value\" : \"Creative Commons Attribution Non-Commercial No-Derivatives\",\r\n        \"@language\" : \"en\"\r\n      } ],\r\n      \"@id\" : \"https://github.com/hbz/oerworldmap/public/json/licenses.json#by-nc-nd\"\r\n    }, {\r\n      \"@type\" : \"Concept\",\r\n      \"name\" : [ {\r\n        \"@value\" : \"Creative Commons Attribution Share-Alike\",\r\n        \"@language\" : \"en\"\r\n      } ],\r\n      \"@id\" : \"https://github.com/hbz/oerworldmap/public/json/licenses.json#cc-by-sa\"\r\n    } ],\r\n    \"audience\" : [ {\r\n      \"@type\" : \"Concept\",\r\n      \"name\" : [ {\r\n        \"@value\" : \"Second stage of tertiary education\",\r\n        \"@language\" : \"en\"\r\n      } ],\r\n      \"@id\" : \"https://w3id.org/isced/1997/level6\"\r\n    }, {\r\n      \"@type\" : \"Concept\",\r\n      \"name\" : [ {\r\n        \"@value\" : \"First stage of tertiary education\",\r\n        \"@language\" : \"en\"\r\n      } ],\r\n      \"@id\" : \"https://w3id.org/isced/1997/level5\"\r\n    } ],\r\n    \"availableChannel\" : [ {\r\n      \"serviceUrl\" : \"https://zenodo.org/\"\r\n    } ],\r\n    \"provider\" : [ {\r\n      \"@type\" : \"Organization\",\r\n      \"name\" : [ {\r\n        \"@value\" : \"CERN\",\r\n        \"@language\" : \"en\"\r\n      } ],\r\n      \"@id\" : \"urn:uuid:f93a7a03-c693-4225-a2f9-aa198d40044d\"\r\n    } ],\r\n    \"@type\" : \"Service\",\r\n    \"name\" : [ {\r\n      \"@value\" : \"Zenodo\",\r\n      \"@language\" : \"en\"\r\n    } ],\r\n    \"description\" : [ {\r\n      \"@value\" : \"Zenodo builds and operates a simple and innovative service that enables researchers, scientists, EU projects and institutions to share, preserve and showcase multidisciplinary research results (data and publications) that are not part of the existing institutional or subject-based repositories of the research communities.\\r\\n\\r\\nZenodo enables researchers, scientists, EU projects and institutions to:\\r\\n\r\n\\r\\n\r\neasily share the long tail of small research results in a wide variety of formats including text, spreadsheets, audio, video, and images across all fields of science.\r\n\\r\\n\r\ndisplay their research results and receive credit by making the research results citable and integrating them into existing reporting lines to funding agencies like the European Commission.\r\n\\r\\n\r\n easily access and reuse shared research results.\r\n\\r\\n\",\r\n      \"@language\" : \"en\"\r\n    } ],\r\n    \"location\" : { },\r\n    \"@id\" : \"urn:uuid:33a6e1fd-7f16-4061-b167-a62b3cac5bb1\"\r\n  } ],\r\n  \"name\" : [ {\r\n    \"@value\" : \"CERN\",\r\n    \"@language\" : \"en\"\r\n  } ],\r\n  \"description\" : [ {\r\n    \"@value\" : \"At CERN, the European Organization for Nuclear Research, physicists and engineers are probing the fundamental structure of the universe. They use the world's largest and most complex scientific instruments to study the basic constituents of matter – the fundamental particles. The particles are made to collide together at close to the speed of light. The process gives the physicists clues about how the particles interact, and provides insights into the fundamental laws of nature.\",\r\n    \"@language\" : \"en\"\r\n  } ],\r\n  \"location\" : {\r\n    \"geo\" : {\r\n      \"lon\" : {\r\n        \"@value\" : \"6,055631E0\",\r\n        \"@type\" : \"xsd:double\"\r\n      },\r\n      \"lat\" : {\r\n        \"@value\" : \"4,6232566E1\",\r\n        \"@type\" : \"xsd:double\"\r\n      }\r\n    },\r\n    \"address\" : {\r\n      \"addressCountry\" : \"CH\",\r\n      \"postalCode\" : 1211,\r\n      \"addressLocality\" : \"Geneva\"\r\n    }\r\n  },\r\n  \"@id\" : \"urn:uuid:f93a7a03-c693-4225-a2f9-aa198d40044d\",\r\n  \"@context\" : \"http://schema.org/\",\r\n  \"url\" : \"http://home.cern/\"\r\n}"},"comment":{"url":"https://api.github.com/repos/hbz/oerworldmap/issues/comments/228375983","html_url":"https://github.com/hbz/oerworldmap/issues/690#issuecomment-228375983","issue_url":"https://api.github.com/repos/hbz/oerworldmap/issues/690","id":228375983,"user":{"login":"trugwaldsaenger","id":6639965,"avatar_url":"https://avatars.githubusercontent.com/u/6639965?v=3","gravatar_id":"","url":"https://api.github.com/users/trugwaldsaenger","html_url":"https://github.com/trugwaldsaenger","followers_url":"https://api.github.com/users/trugwaldsaenger/followers","following_url":"https://api.github.com/users/trugwaldsaenger/following{/other_user}","gists_url":"https://api.github.com/users/trugwaldsaenger/gists{/gist_id}","starred_url":"https://api.github.com/users/trugwaldsaenger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trugwaldsaenger/subscriptions","organizations_url":"https://api.github.com/users/trugwaldsaenger/orgs","repos_url":"https://api.github.com/users/trugwaldsaenger/repos","events_url":"https://api.github.com/users/trugwaldsaenger/events{/privacy}","received_events_url":"https://api.github.com/users/trugwaldsaenger/received_events","type":"User","site_admin":false},"created_at":"2016-06-24T15:24:52Z","updated_at":"2016-06-24T15:24:52Z","body":"I still have the same problem on production, even with the new version. Take the UNESCO OER Congress as an example:\r\nhttps://oerworldmap.org/resource/?q=UNESCO+Congress#urn:uuid:c27c383c-ecab-44e7-be67-24a741586afe\r\nI added the ressource on wednesday (before the relaunch). I could not add the geocoordinates. @karindr was able to do so and added longitude and latitude. The interesting thing is, that if I simply open the edit template and try to save it again I receive an error message. This seems to be true for all entries.\r\n\r\n\r\n    The data you entered is invalid\r\n\r\n    We are working hard on better error reporting. But until that is done, you are unfortunately stuck with this:\r\n\r\n    com.github.fge.jsonschema.core.report.ListProcessingReport: failure\r\n    --- BEGIN MESSAGES ---\r\n    error: instance type (object) does not match any allowed primitive type (allowed: [\"integer\",\"number\"])\r\n        level: \"error\"\r\n        schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/GeoCoordinates/properties/lat\"}\r\n        instance: {\"pointer\":\"/location/geo/lat\"}\r\n        domain: \"validation\"\r\n        keyword: \"type\"\r\n        found: \"object\"\r\n        expected: [\"integer\",\"number\"]\r\n    error: instance type (object) does not match any allowed primitive type (allowed: [\"integer\",\"number\"])\r\n        level: \"error\"\r\n        schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/GeoCoordinates/properties/lon\"}\r\n        instance: {\"pointer\":\"/location/geo/lon\"}\r\n        domain: \"validation\"\r\n        keyword: \"type\"\r\n        found: \"object\"\r\n        expected: [\"integer\",\"number\"]\r\n    ---  END MESSAGES  ---\r\n\r\n    {\r\n      \"endDate\" : \"2012-06-22\",\r\n      \"@type\" : \"Event\",\r\n      \"about\" : [ {\r\n        \"inScheme\" : {\r\n          \"@type\" : \"ConceptScheme\",\r\n          \"@id\" : \"https://w3id.org/class/esc/scheme\"\r\n        },\r\n        \"@type\" : \"Concept\",\r\n        \"notation\" : [ \"01\", \"011\" ],\r\n        \"name\" : [ {\r\n          \"@value\" : \"Education\",\r\n          \"@language\" : \"en\"\r\n        } ],\r\n        \"narrower\" : [ {\r\n          \"@type\" : \"Concept\",\r\n          \"name\" : [ {\r\n            \"@value\" : \"Training for pre-school teachers\",\r\n            \"@language\" : \"en\"\r\n          } ],\r\n          \"@id\" : \"https://w3id.org/class/esc/n0112\"\r\n        }, {\r\n          \"@type\" : \"Concept\",\r\n          \"name\" : [ {\r\n            \"@value\" : \"Teacher training with subject specialisation\",\r\n            \"@language\" : \"en\"\r\n          } ],\r\n          \"@id\" : \"https://w3id.org/class/esc/n0114\"\r\n        }, {\r\n          \"@type\" : \"Concept\",\r\n          \"name\" : [ {\r\n            \"@value\" : \"Education science\",\r\n            \"@language\" : \"en\"\r\n          } ],\r\n          \"@id\" : \"https://w3id.org/class/esc/n0111\"\r\n        }, {\r\n          \"@type\" : \"Concept\",\r\n          \"name\" : [ {\r\n            \"@value\" : \"Teacher training without subject specialisation\",\r\n            \"@language\" : \"en\"\r\n          } ],\r\n          \"@id\" : \"https://w3id.org/class/esc/n0113\"\r\n        }, {\r\n          \"@type\" : \"Concept\",\r\n          \"name\" : [ {\r\n            \"@value\" : \"Education\",\r\n            \"@language\" : \"en\"\r\n          } ],\r\n          \"@id\" : \"https://w3id.org/class/esc/n01\"\r\n        } ],\r\n        \"@id\" : \"https://w3id.org/class/esc/n01\",\r\n        \"topConceptOf\" : {\r\n          \"@type\" : \"ConceptScheme\",\r\n          \"@id\" : \"https://w3id.org/class/esc/scheme\"\r\n        }\r\n      } ],\r\n      \"name\" : [ {\r\n        \"@value\" : \"World Open Educational Resources Congress\",\r\n        \"@language\" : \"en\"\r\n      } ],\r\n      \"description\" : [ {\r\n        \"@value\" : \"\r\n\r\n    The 2012 Paris OER Declaration was formally adopted at the 2012 World Open Educational Resources (OER) Congress held at the UNESCO Headquarters in Paris from 20 – 22 June 2012. \r\n    \\r\\n\r\n\r\n    \\r\\nOver 400 delegates including representatives of Government, educators, NGOs, and universities attended the Congress which was organized in full partnership with the Commonwealth of Learning (COL) and supported by a generous grant from the William and Flora Hewlett Foundation (USA).\r\n    \\r\\n\\r\\nThe goals of the Congress were to:\\r\\n\r\n        \\r\\n    \r\n        Release the 2012 Paris OER Declaration\r\n        \\r\\n    \r\n        Showcase through an Open Seminar & Exhibition the world’s best practices in OER policies and initiatives  and\r\n        \\r\\n\\r\\n   \r\n         Celebrating the 10th anniversary of the 2002 UNESCO Forum that coined the term Open Educational Resources (OER).\r\n        \\r\\n\\r\\n\\r\\n\r\n\r\n    The Congress was organized as an open multi-stakeholder event. Physical and remote participants were able to continually follow and participate in all sessions and directly contribute to the Paris OER Declaration via live-webstreaming or through Twitter and Identi.ca using the hashtag #oercongress.\r\n    \",\r\n        \"@language\" : \"en\"\r\n      } ],\r\n      \"location\" : {\r\n        \"geo\" : {\r\n          \"lon\" : {\r\n            \"@value\" : \"2,306503E0\",\r\n            \"@type\" : \"xsd:double\"\r\n          },\r\n          \"lat\" : {\r\n            \"@value\" : \"4,8849888E1\",\r\n            \"@type\" : \"xsd:double\"\r\n          }\r\n        },\r\n        \"address\" : {\r\n          \"addressCountry\" : \"FR\",\r\n          \"streetAddress\" : \"7 Place de Fontenoy\",\r\n          \"postalCode\" : 75007,\r\n          \"addressLocality\" : \"Paris\"\r\n        }\r\n      },\r\n      \"@id\" : \"urn:uuid:c27c383c-ecab-44e7-be67-24a741586afe\",\r\n      \"@context\" : \"http://schema.org/\",\r\n      \"startDate\" : \"2012-06-20\",\r\n      \"url\" : \"http://www.unesco.org/new/en/communication-and-information/events/calendar-of-events/events-websites/world-open-educational-resources-congress/\",\r\n      \"hashtag\" : \"#oercongress\"\r\n    }\r\n\r\n"}}
{"actor":{"display_login":"trugwaldsaenger"}}