-
Notifications
You must be signed in to change notification settings - Fork 4
Description
$inputPerson = NaturalInputPerson::builder()
->name(InputPersonName::westernBuilder()
->fullname( "John F. Kennedy" )
->build())
->build();
$personNameParser = $this->serviceFactory->parserServices()->personNameParser();
$parseResult = $personNameParser->parse($inputPerson);throws the following error:
Can't parse input object.: Unrecognized field "ageInfo" (class org.nameapi.ontology5.input.entities.person.NaturalInputPersonImpl), not marked as ignorable (11 known properties: "personName", "gender", "correspondenceLanguage", "nativeLanguages", "maritalStatus", "nationalities", "age", "religion", "addresses", "emailAddresses", "telNumbers"])
at [Source: (String)"{"inputPerson":{"type":"NaturalInputPerson","personName":{"nameFields":[{"string":"John F. Kennedy","fieldType":"FULLNAME"}]},"gender":null,"ageInfo":null,"maritalStatus":null,"nationalities":null,"nativeLanguages":null,"correspondenceLanguage":null,"religion":null,"addresses":null,"telNumbers":null,"emailAddresses":null},"context":{"priority":"REALTIME","place":"MX","textCase":null,"properties":[]}}"; line: 1, column: 324] (through reference chain: org.nameapi.ontology5.services.InputWithPerson["inputPerson"]->org.nameapi.ontology5.input.entities.person.NaturalInputPersonImpl["ageInfo"])