Skip to content

Proposta di utilizzo di info.x-gdpr per contatti dei responsabili ed … #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: 14-metadata-muoversi-lombardia
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions external-apis/muoversi2015.e015.servizirl.it.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ info:
```
'https://muoversi2015.e015.servizirl.it/planner/rest/soluzioniJson/e015Search?param=milano&maxResult=1'
```
x-gdpr:
- role: data-controller # contatti della/delle persona titolare del trattamento dei dati
name: nome e cognome
email: email@example.com
- role: data-controller
name: nome2 e cognome2
email: email2@example.com
- role: data-processor # contatti della/delle persona responsabile del trattamento dei dati
name: nome3 e cognome3
email: email3@example.com
- role: data-processor
name: nome4 e cognome4
email: email4@example.com
contact:
name: Technical Management Board di E015
url: http://www.e015.regione.lombardia.it/PE015/esplora-i-contenuti/i-servizi/muoversi-lombardia
Expand Down Expand Up @@ -609,15 +622,21 @@ components:
run: 'MILANO, Greco Pirelli, Stazione'
transport: '3'
TimetableFermata:
x-gdpr:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stefkohub mi pare sensato.

class: public
properties:
id:
type: string
stop:
type: string
x:
$ref: '#/components/schemas/Longitudine'
x-gdpr:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stefkohub

  • $ref è un puntatore tout-court, non puoi affiancargli nulla.
  • il tipo di dato dovrebb'essere eventualmente definito nello schema "puntato" (eg. Latitudine)

Copy link
Author

@stefkohub stefkohub Dec 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Messo così effettivamente viene ignorato dal motore ufficiale, per renderlo corretto potremmo ragionare anche sul senso che avrebbe usare un allOf:

allOf:
  - $ref: '#/components/schemas/Longitudine'
  - x-gdpr: ...

Però credo sia più importante quello che dici nel secondo punto. E' molto meglio definire questo attributo gdpr nello schema "puntato" da $ref.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

afaik gli elementi della lista allOf devono essere schema, mentre x-gdpr è un oggetto. Ti torna? Ci ho pensato ancora e non ho trovato soluzioni alternative al definire x-gdpr al di fuori dello schema puntato da $ref...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si anche io ci ho ragionato un po' e sono d'accordo.
Va messo nello schema "puntato" da $ref.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea!

class: public
y:
$ref: '#/components/schemas/Latitudine'
x-gdpr:
class: public
example:
id: '1'
stop: 'Milano, Affori M3, Stazione Ferroviaria'
Expand Down