ietf-tools / relaton-data-ieee

3 stars 5 forks source link

Invalid contact data #12

Open strogonoff opened 2 years ago

strogonoff commented 2 years ago

We get this:

https://github.com/ietf-tools/relaton-data-ieee/blob/08b9b484e65fcac7cbc7c0a7b9910bc0e98519e3/data/IEEE_P1896_D-2.4.2016.yaml#L32-L34

However, per spec, we expect something like:

 contact: 
 - address:
     city: Piscataway 
     country: USA 
strogonoff commented 2 years ago

@ronaldtse (I’m not sure this is the right place, this could possibly be transfered to the respective Ruby gem instead)

opoudjis commented 2 years ago

The misunderstanding here I think is in the way the grammar has been written:

contact =
  ( address | phone | email | uri )

There is no contact tag: there is an address tag, which includes city and country. So:

<organization>
<name>...</name>
<uri>...</uri>
<address><city>...</city><country>...<country></address>
<email>...</email>
....
</organization>
andrew2net commented 2 years ago

I'll update it with the next Relaton minor version release.

andrew2net commented 1 year ago

@strogonoff fixed in the relaton-bib v 1.12.2