Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
General cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesrosiers committed Apr 30, 2021
1 parent 5603b47 commit cc90600
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 33 deletions.
20 changes: 10 additions & 10 deletions source/about.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ may go by different names.
.. language_specific::

--Python
The following table maps from the names of JavaScript types to
their analogous types in Python:
The following table maps from the names of JSON types to their
analogous types in Python:

+----------+-----------+
|JavaScript|Python |
|JSON |Python |
+----------+-----------+
|string |string |
| |[#1]_ |
Expand All @@ -81,19 +81,19 @@ may go by different names.

.. rubric:: Footnotes

.. [#1] Since JavaScript strings always support unicode, they are
.. [#1] Since JSON strings always support unicode, they are
analogous to ``unicode`` on Python 2.x and ``str`` on
Python 3.x.
.. [#2] JavaScript does not have separate types for integer and
.. [#2] JSON does not have separate types for integer and
floating-point.
--Ruby
The following table maps from the names of JavaScript types to
their analogous types in Ruby:
The following table maps from the names of JSON types to their
analogous types in Ruby:

+----------+----------------------+
|JavaScript|Ruby |
|JSON |Ruby |
+----------+----------------------+
|string |String |
+----------+----------------------+
Expand All @@ -111,7 +111,7 @@ may go by different names.

.. rubric:: Footnotes

.. [#3] JavaScript does not have separate types for integer and
.. [#3] JSON does not have separate types for integer and
floating-point.
With these simple data types, all kinds of structured data can be
Expand Down Expand Up @@ -181,7 +181,7 @@ for now. They are explained in subsequent chapters.
{
"first_name": "George",
"last_name": "Washington",
"birthday": "22-02-1732",
"birthday": "1732-02-22",
"address": {
"street_address": "3200 Mount Vernon Memorial Highway",
"city": "Mount Vernon",
Expand Down
18 changes: 9 additions & 9 deletions source/conventions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ JSON in a few different languages:
Draft-specific notes
--------------------

The JSON Schema standard has been through a number of revisions or "drafts". The
most important are Draft 7, the most recent at the time of this writing, and
Draft 4, on which a lot of production software was built, and the draft for
which an earlier version of this book was written.

The text is written to encourage the use of Draft 7 and gives priority to the
latest conventions and features, but where it differs from earlier drafts, those
differences are highlighted in special call-outs. If you only wish to target
Draft 7, you can safely ignore those sections.
The JSON Schema standard has been through a number of revisions or
"drafts". The the current version is Draft 7, but Draft 4 is still
widely used as well.

The text is written to encourage the use of Draft 7 and gives priority
to the latest conventions and features, but where it differs from
earlier drafts, those differences are highlighted in special
call-outs. If you only wish to target Draft 7, you can safely ignore
those sections.

|draft7|

Expand Down
8 changes: 4 additions & 4 deletions source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ validator---just yet.
resources, including the official specification and tools for
working with JSON Schema from various programming languages.

- `jsonschema.dev <https://jsonschema.dev>`__ is an online application
run your own JSON schemas against example documents. If you want to
try things out without installing any software, it's a very handy
resource.
- There are a number of `online JSON Schema tools <https://json-schema.org/implementations.html#validator-web%20(online)>`__
that allow you to run your own JSON schemas against example
documents. These can be very handy if you want to try things out
without installing any software.

.. only:: html

Expand Down
21 changes: 11 additions & 10 deletions source/reference/type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ data type for a schema.
At its core, JSON Schema defines the following basic types:

- `string`
- `numeric`
- `number <number>`
- `integer <integer>`
- `object`
- `array`
- `boolean`
Expand All @@ -25,11 +26,11 @@ may go by different names.
.. language_specific::

--Python
The following table maps from the names of JavaScript types to
their analogous types in Python:
The following table maps from the names of JSON types to their
analogous types in Python:

+----------+-----------+
|JavaScript|Python |
|JSON |Python |
+----------+-----------+
|string |string |
| |[#1]_ |
Expand All @@ -48,20 +49,20 @@ may go by different names.

.. rubric:: Footnotes

.. [#1] Since JavaScript strings always support unicode, they are
.. [#1] Since JSON strings always support unicode, they are
analogous to ``unicode`` on Python 2.x and ``str`` on
Python 3.x.
.. [#2] JavaScript does not have separate types for integer and
.. [#2] JSON does not have separate types for integer and
floating-point.
--Ruby
The following table maps from the names of JavaScript types to
their analogous types in Ruby:
The following table maps from the names of JSON types to their
analogous types in Ruby:

+----------+----------------------+
|JavaScript|Ruby |
|JSON |Ruby |
+----------+----------------------+
|string |String |
+----------+----------------------+
Expand All @@ -79,7 +80,7 @@ may go by different names.

.. rubric:: Footnotes

.. [#3] JavaScript does not have separate types for integer and
.. [#3] JSON does not have separate types for integer and
floating-point.
The ``type`` keyword may either be a string or an array:
Expand Down

0 comments on commit cc90600

Please sign in to comment.