fix(annuaire-education): schema should not require adresse_1, type_contrat_prive attributes

https://sentry.io/organizations/demarches-simplifiees/issues/3328955794/events/147affe4b73b43a391c257b97d298bb9/?project=1429550
This commit is contained in:
Colin Darie 2022-12-07 09:46:45 +01:00
parent c48044419e
commit 40a1eaaaed
2 changed files with 2 additions and 3 deletions

View file

@ -167,14 +167,12 @@
"required": [ "required": [
"identifiant_de_l_etablissement", "identifiant_de_l_etablissement",
"nom_etablissement", "nom_etablissement",
"type_contrat_prive",
"nom_commune", "nom_commune",
"code_commune", "code_commune",
"libelle_academie", "libelle_academie",
"code_academie", "code_academie",
"libelle_nature", "libelle_nature",
"code_nature", "code_nature",
"adresse_1",
"code_postal", "code_postal",
"libelle_region", "libelle_region",
"code_region" "code_region"

View file

@ -35,6 +35,7 @@
%tr %tr
%th.libelle Adresse : %th.libelle Adresse :
%td %td
- if champ.data['adresse_1'].present?
= champ.data['adresse_1'] = champ.data['adresse_1']
%br %br
= "#{champ.data['code_postal']} #{champ.data['nom_commune']}" = "#{champ.data['code_postal']} #{champ.data['nom_commune']}"