Skip to content
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 protected]
- role: data-controller
name: nome2 e cognome2
email: [email protected]
- role: data-processor # contatti della/delle persona responsabile del trattamento dei dati
name: nome3 e cognome3
email: [email protected]
- role: data-processor
name: nome4 e cognome4
email: [email protected]
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