chisel 1.6.1__tar.gz → 1.6.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chisel
3
- Version: 1.6.1
3
+ Version: 1.6.2
4
4
  Summary: Lightweight WSGI application framework, schema-validated JSON APIs, and API documentation
5
5
  Home-page: https://github.com/craigahobbs/chisel
6
6
  Author: Craig A. Hobbs
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = chisel
3
- version = 1.6.1
3
+ version = 1.6.2
4
4
  url = https://github.com/craigahobbs/chisel
5
5
  author = Craig A. Hobbs
6
6
  author_email = craigahobbs@gmail.com
@@ -166,6 +166,9 @@ action chisel_doc_request
166
166
  # The map of the action's type name's to type models. This member is only present for JSON APIs.
167
167
  optional Types types
168
168
 
169
+ # If true, the action has a custom response
170
+ optional bool custom
171
+
169
172
  errors
170
173
  # The request name is unknown
171
174
  UnknownName
@@ -192,6 +195,8 @@ action chisel_doc_request
192
195
  response['urls'] = [self._url_dict(method, path) for method, path in request.urls]
193
196
  if isinstance(request, Action):
194
197
  response['types'] = get_referenced_types(request.types, request.name)
198
+ if request.wsgi_response:
199
+ response['custom'] = True
195
200
  elif request.doc is not None:
196
201
  response['doc'] = [request.doc] if isinstance(request.doc, str) else request.doc
197
202
 
@@ -60,6 +60,7 @@ async function chiselDocRequestPage(typeName):
60
60
  doc = objectGet(docRequest, 'doc')
61
61
  urls = objectGet(docRequest, 'urls')
62
62
  types = objectGet(docRequest, 'types')
63
+ custom = objectGet(docRequest, 'custom', false)
63
64
 
64
65
  # Render the request page
65
66
  documentSetTitle(typeName)
@@ -67,7 +68,7 @@ async function chiselDocRequestPage(typeName):
67
68
 
68
69
  # Action request?
69
70
  if types != null:
70
- elementModelRender(schemaElements(types, typeName, urls))
71
+ elementModelRender(schemaElements(types, typeName, urls, custom))
71
72
  return
72
73
  endif
73
74
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chisel
3
- Version: 1.6.1
3
+ Version: 1.6.2
4
4
  Summary: Lightweight WSGI application framework, schema-validated JSON APIs, and API documentation
5
5
  Home-page: https://github.com/craigahobbs/chisel
6
6
  Author: Craig A. Hobbs
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes