Skip to content

edit to syntax example #1421

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

Closed
wants to merge 2 commits into from
Closed

edit to syntax example #1421

wants to merge 2 commits into from

Conversation

bgrabar
Copy link

@bgrabar bgrabar commented Nov 27, 2013

I would merge this, but another set of eyes should approve it.

@@ -27,7 +27,7 @@ schema:
db: "<database>",
privileges: [
{
resource: <resource document>,
resource: { <resource> },
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the previous one is better given these two options, but along the lines of your edit, how about if we do something like:

  {
     // ...
     resources: { "db": <name> <, collection: <name>> }
     // ...
  }

or something that prototypes a resource document a little bit more clearly.

Copy link
Author

Choose a reason for hiding this comment

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

I think the answer is your proposal. I was torn about the "//" -- if we use the commenting out, then we have a dangling comma (see second patch) -- so I left it as is, without the //. This isn't something the user should cut and paste, as our examples are, so I think we're ok not to put in comment slashed.

@kay-kim
Copy link
Contributor

kay-kim commented Dec 4, 2013

merged. put resource document to since it has 2 forms

@kay-kim kay-kim closed this Dec 4, 2013
mongo-cr-bot pushed a commit that referenced this pull request Jul 15, 2022
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 26, 2025
* (DOCSP-31095) Adds MongoDBUser CRD example and spec reference.

* Revises per tech and copy review.
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 26, 2025
* (DOCSP-31095) Adds MongoDBUser CRD example and spec reference.

* Revises per tech and copy review.
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.

3 participants