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

17796 Allow firm registration for single name user/account #144

Merged
merged 8 commits into from
Oct 11, 2023

Conversation

chenhongjing
Copy link
Collaborator

@chenhongjing chenhongjing commented Oct 5, 2023

Issue #: /bcgov/entity#17796

Description of changes:

  • the first name field is optional for completing party if the party is person
  • the last name field should be non-empty for completing party if the party is person
  • fixed the example data

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the business-schemas license (Apache 2.0).

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
@chenhongjing chenhongjing changed the title 17796 17796 Allow firm registration for single name user/account Oct 10, 2023
@chenhongjing chenhongjing self-assigned this Oct 10, 2023
@chenhongjing chenhongjing marked this pull request as ready for review October 10, 2023 16:43
@vysakh-menon-aot
Copy link
Collaborator

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
Copy link
Collaborator

@thorwolpert thorwolpert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The names examples break some fundamental rules.
The natural person should only require a lastName, leave out the complexity.

"properties": {
"firstName": { "minLength": 1 }
},
"required": ["firstName"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably change the schema to allow a null firstName in all circumstances.

@@ -958,8 +958,8 @@
{
'officer': {
'id': 2,
'firstName': '',
'lastName': '',
'firstName': 'Peter',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't be able to have name fields and organizationName

src/registry_schemas/schemas/party.json Show resolved Hide resolved
Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
Copy link
Collaborator

@thorwolpert thorwolpert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes

chenhongjing and others added 2 commits October 11, 2023 15:19
Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
@argush3 argush3 merged commit 3b55629 into bcgov:main Oct 11, 2023
1 check passed
JazzarKarim pushed a commit to JazzarKarim/business-schemas that referenced this pull request Jan 31, 2024
* 17796

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>

* fix some tests

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>

* fix-2

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>

* update version = 2.18.12

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>

* update required fields

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>

* fix-3

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>

* update version=2.18.13

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>

---------

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
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

Successfully merging this pull request may close these issues.

4 participants