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

Schema documentation does not show marginal note and correction status #18

Open
adamconder opened this issue Aug 18, 2016 · 8 comments
Open

Comments

@adamconder
Copy link

"required": [
          "blockedRegistration",
          "cancelled",
          "correction",
          "potentiallyFictitiousBirth",
          "marginalNote",
          "reRegistered"
        ]

marginalNote and correction is required yet the schema is missing these values.

Also, the schema is showing these additional properties within status but they're not shown in the required list. Can you clarify these please?

"cautionMark": {
            "type": "boolean",
            "description": "TBD, what does this mean",
            "default": false
          },
          "courtOrder": {
            "type": "string",
            "example": "None",
            "description": "TBD, what does this mean",
            "enum": [
              "None",
              "In place",
              "Revoked"
            ]
          }

It would also be good if you could expand on "description": "TBD, what does this mean" to provide some context as to what these flags indicate.

@timgent
Copy link
Contributor

timgent commented Aug 22, 2016

Thanks for flagging this. Think some additional work is needed here as follows (will use this issue to track):

  1. Update docs so only following status flag is required:
  • blockedRegistration
  1. Update status fields so there should be only:
    blockedRegistration: Boolean
    cancelled: Option[Boolean]
    potentiallyFictitiousBirth: Option[Boolean]
    reRegistered: Option[String]
    correction: Option[String]
    marginalNote: Option[String]

  2. Add proper descriptions for each of the status fields

@timgent
Copy link
Contributor

timgent commented Aug 22, 2016

@adamconder Currently we have blocked registrations where all the other fields, including the other status fields, are blanked out, leaving just the names and system number. This makes more of those status fields optional and maybe reduces the usefulness of the schema.

Does this work for you as a way of handling blocked registrations or can you think of any other ways to handle it that would work better?

@timgent
Copy link
Contributor

timgent commented Aug 22, 2016

PR created here:
#23

@adamconder
Copy link
Author

Currently we have blocked registrations where all the other fields, including the other status fields, are blanked out, leaving just the names and system number. This makes more of those status fields optional and maybe reduces the usefulness of the schema.

@timgent Could you please clarify what you mean by this I don't understand your response.

@timgent
Copy link
Contributor

timgent commented Aug 22, 2016

So if you get a blocked record it will look something like this:

{
  "location": {

  },
  "subjects": {
    "child": {
      "name": {

      },
      "originalName": {

      }
    },
    "father": {
      "name": {

      }
    },
    "mother": {
      "name": {

      }
    },
    "informant": {
      "name": {

      }
    }
  },
  "systemNumber": 123456789,
  "id": 123456789,
  "status": {
    "blockedRegistration": true
  },
  "previousRegistration": {

  }
}

@timgent
Copy link
Contributor

timgent commented Aug 22, 2016

So you get empty objects for all the required fields, system number is returned, but nothing else comes back

@adamconder
Copy link
Author

@timgent Thank you for clarifying this. This is helpful in understanding the variations of data coming back from GRO. Can there be a situation that arises where there is multiple status flags being returned. This is an object on the schema so doesn't indicate if multiple can occur?

@timgent
Copy link
Contributor

timgent commented Aug 23, 2016

Yes multiple flags can be returned. However if you have blockedRegistration flag come back you won't get any information about the others

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

2 participants