Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ageInfo error #18

Open
tacman opened this issue Jan 7, 2023 · 1 comment
Open

ageInfo error #18

tacman opened this issue Jan 7, 2023 · 1 comment

Comments

@tacman
Copy link

tacman commented Jan 7, 2023

    $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"])

@tacman
Copy link
Author

tacman commented Jan 7, 2023

Using dev-master instead of the released version (^5.0) fixes this, but I wish there were a way use this library with a released version rather than the dev version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant