Skip to content

Commit

Permalink
bson: fix doc formatting and add author info
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdale committed May 2, 2023
1 parent 9a982d0 commit 40630d3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ bplist> from_ns_keyed_archiver(1)

## bson

Limitations:
### Limitations:

- The decimal128 type is not supported for decoding, will just be treated as binary

Expand Down
6 changes: 5 additions & 1 deletion format/bson/bson.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Limitations:
### Limitations

- The decimal128 type is not supported for decoding, will just be treated as binary

Expand All @@ -14,5 +14,9 @@ $ fq -d bson torepr file.bson
$ fq -d bson 'torepr | select(.name=="bob")' file.bson
```

### Authors
- Mattias Wadman mattias.wadman@gmail.com, original author
- Matt Dale [@matthewdale](https://github.com/matthewdale), additional types and bug fixes

### References
- https://bsonspec.org/spec.html
11 changes: 11 additions & 0 deletions format/bson/testdata/help_bson.fqtest
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ Decode examples
# Decode value as bson
... | bson

Limitations
===========

- The decimal128 type is not supported for decoding, will just be treated as binary

Convert represented value to JSON
=================================

Expand All @@ -19,6 +24,12 @@ Filter represented value

$ fq -d bson 'torepr | select(.name=="bob")' file.bson

Authors
=======

- Mattias Wadman mattias.wadman@gmail.com, original author
- Matt Dale @matthewdale (https://github.com/matthewdale), additional types and bug fixes

References
==========

Expand Down

0 comments on commit 40630d3

Please sign in to comment.