GeezerVison is showing github.com — metadata property types · Issue #85 · googleapis/google-cloud-node
metadata property types #85DescriptionRight now the metadata describes a property type (string, int, etc) as a kind. This is a little overloaded with the concept of a Kind in datastore. Perhaps these could all be called type instead? Then metadata would look like:
registerKind('namespace', 'Author', {
name: { type: STRING, indexed: false },
tags: { type: STRING, multi: true }, // an array of string elements.
favArticles: { type: KEY, multi: true }
contact: {
kind: {
telephone: { type: STRING },
email: { type: STRING }
}
}
});
Activityadded this to the This milestone has been deleted milestone on Aug 1, 2014rakyll commented on Aug 1, 2014 Agreed, I will replace kind with type when we support schema. added a commit that references this issue on Aug 30, 2014This issue will close once commit ef45b39 is merged into the 'master' branch.ef45b39 changed the title [-]datastore: metadata property types[/-] [+]metadata property types[/+] on Jan 20, 2015stephenplusplus commented on Nov 23, 2015 @pcostell obviously, a lot has changed over the last 15 months. Is there anything for me to do here? pcostell commented on Nov 23, 2015 ContributorAuthor More actions I don't think so. Did this metadata registration ever make it into the project? stephenplusplus commented on Nov 23, 2015 Nope. In general, our library is pretty relaxed when it comes to types and validation and such. Beyond common utilities, we leave it to the user to create helpers where they make sense given their own projects and workflows. Then, where applicable, we let the API catch any errors from input mismatches.
Datastore is arguably the most complex API we support, so I can see how it could be valuable in this case, however. What do you think? Would the majority of codebases using Datastore benefit from this concept? pcostell commented on Nov 23, 2015 ContributorAuthor More actions I think that would be more beneficial for a higher level, maybe 3rd party library. Or even some sort of adapter to an existing framework. I think keeping the gcloud API relatively simple is better. added 2 commits that reference this issue on Mar 23, 2026This issue will close once commit c46b83b is merged into the 'main' branch.c46b83b This issue will close once commit eb9fc1c is merged into the 'main' branch.eb9fc1c added a commit that references this issue on Mar 27, 2026This issue will close once commit 4a56a10 is merged into the 'main' branch.4a56a10 added a commit that references this issue on May 5, 2026This issue will close once commit bddcf06 is merged into the 'main' branch.bddcf06
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|