Merge pull request #5963 from tchak/fix-association-serilizer

Make more association fields nullable
This commit is contained in:
krichtof 2021-03-05 10:26:22 +01:00 committed by GitHub
commit bdcce19841
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -104,9 +104,9 @@ enum AddressType {
type Association {
dateCreation: ISO8601Date
dateDeclaration: ISO8601Date!
datePublication: ISO8601Date!
objet: String!
dateDeclaration: ISO8601Date
datePublication: ISO8601Date
objet: String
rna: String!
titre: String!
}

View file

@ -74,10 +74,10 @@ module Types
class AssociationType < Types::BaseObject
field :rna, String, null: false
field :titre, String, null: false
field :objet, String, null: false
field :objet, String, null: true
field :date_creation, GraphQL::Types::ISO8601Date, null: true
field :date_declaration, GraphQL::Types::ISO8601Date, null: false
field :date_publication, GraphQL::Types::ISO8601Date, null: false
field :date_declaration, GraphQL::Types::ISO8601Date, null: true
field :date_publication, GraphQL::Types::ISO8601Date, null: true
end
implements Types::DemandeurType