From b477a7d16375d426648389d47859179c252b902b Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 17 Mar 2021 16:02:40 +0000 Subject: [PATCH] Document the version/kind fields in the natspec documentation --- docs/natspec-format.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/natspec-format.rst b/docs/natspec-format.rst index 0995722e4..449d4d712 100644 --- a/docs/natspec-format.rst +++ b/docs/natspec-format.rst @@ -177,6 +177,11 @@ documentation using: And the output is below. +.. note:: + Starting Solidity version 0.6.11 the NatSpec output also contains a ``version`` and a ``kind`` field. + Currently the ``version`` is set to ``1`` and ``kind`` must be one of ``user`` or ``dev``. + In the future it is possible that new versions will be introduced, deprecating older ones. + .. _header-user-doc: User Documentation @@ -188,6 +193,8 @@ JSON file as output: .. code:: { + "version" : 1, + "kind" : "user", "methods" : { "age(uint256)" : @@ -214,6 +221,8 @@ file should also be produced and should look like this: .. code:: { + "version" : 1, + "kind" : "dev", "author" : "Larry A. Gardner", "details" : "All function calls are currently implemented without side effects", "methods" :