saasify-openapi-utils
Version:
OpenAPI utilities for Saasify.
494 lines (365 loc) • 8.29 kB
Markdown
# Snapshot report for `lib/get-examples-from-path-item.test.js`
The actual snapshot is saved in `get-examples-from-path-item.test.js.snap`.
Generated by [AVA](https://avajs.dev).
## parseOpenAPI success basic
> Snapshot 1
[]
## parseOpenAPI success examples-get-params-0
> Snapshot 1
[
{
input: {
abc0: 'abc0',
abc1: 'abc1',
bar: 'bar',
baz0: 'baz0',
baz1: 'baz1',
foo: 'foo',
nala: 13,
},
inputContentType: 'application/json',
},
]
## parseOpenAPI success examples-get-params-1
> Snapshot 1
[
{
input: {
abc0: 'abc0',
abc1: 'abc1',
bar: 'bar',
baz0: 'baz0',
baz1: 'baz1',
foo: 'foo',
nala: 13,
},
inputContentType: 'application/json',
},
]
## parseOpenAPI success examples-get-params-2
> Snapshot 1
[]
## parseOpenAPI success examples-post-request-body-0
> Snapshot 1
[
{
input: {
ingredients: [
'3 large Granny Smith apples',
'2 1/2 tablespoons finely chopped parsley',
'½ tsp brown sugar',
],
},
inputContentType: 'application/json',
},
]
## parseOpenAPI success examples-post-request-body-1
> Snapshot 1
[
{
input: {
ingredients: [
'3 large Granny Smith apples',
'2 1/2 tablespoons finely chopped parsley',
'½ tsp brown sugar',
],
},
inputContentType: 'application/json',
},
]
## parseOpenAPI success examples-post-request-body-2
> Snapshot 1
[
{
input: {
ingredients: [
'3 large Granny Smith apples',
'2 1/2 tablespoons finely chopped parsley',
'½ tsp brown sugar',
],
},
inputContentType: 'application/json',
},
]
## parseOpenAPI success examples-post-request-body-3
> Snapshot 1
[
{
input: {
ingredients: [
'3 large Granny Smith apples',
'2 1/2 tablespoons finely chopped parsley',
'½ tsp brown sugar',
],
},
inputContentType: 'application/json',
},
]
## parseOpenAPI success examples-post-request-body-4
> Snapshot 1
[
{
input: {
ingredients: [
'2 tall apples',
'1 tiny kitten',
'½ tsp brown sugar',
],
},
inputContentType: 'application/json',
},
{
input: {
ingredients: [
'3 large Granny Smith apples',
'2 1/2 tablespoons finely chopped parsley',
'½ tsp brown sugar',
],
},
inputContentType: 'application/json',
},
]
## parseOpenAPI success icons8
> Snapshot 1
[]
> Snapshot 2
[]
> Snapshot 3
[]
> Snapshot 4
[]
> Snapshot 5
[
{
input: {
since: '2014-12-31',
},
inputContentType: 'application/json',
},
]
> Snapshot 6
[]
> Snapshot 7
[
{
input: {
auth: {
hash: 'api-demo-user',
},
task: {
arguments: {
collection: 'bef787ce-41ad-4424-8e0e-19ce78e104c3',
css_prefix: 'icons8',
css_rules_case: 'lowercase',
css_selector: '.icons8-{{glyph}}',
font_name: 'Material Very Basic',
},
},
},
inputContentType: 'application/json',
},
]
> Snapshot 8
[
{
input: {
auth: {
hash: 'api-demo-user',
},
task: {
arguments: {
collection: 'bef787ce-41ad-4424-8e0e-19ce78e104c3',
css_prefix: 'icons8',
css_rules_case: 'lowercase',
css_selector: '.icons8-{{glyph}}',
font_name: 'Material Very Basic',
},
},
},
inputContentType: 'application/json',
},
]
## parseOpenAPI success param-in-path
> Snapshot 1
[]
## parseOpenAPI success pdfbroker
> Snapshot 1
[]
> Snapshot 2
[
{
input: {
foDocumentBase64String: '<Encode your XSL-FO document as Base64 encoded string>',
resources: {
'<Use file name as key, i.e \'logo.png\', which is set as src on fo:external-graphic elements>': '<Convert your images to Base64 encoded string>',
},
},
inputContentType: 'application/json',
},
]
> Snapshot 3
[
{
input: {
foDocumentBase64String: '<Encode your XSL-FO transform document as Base64 encoded string>',
resources: {
'<Use file name as key, i.e \'logo.png\', which is set as src on fo:external-graphic elements>': '<Convert your images to Base64 encoded string>',
},
xmlDataDocumentBase64String: '<This is the document which contains your data that the XSL-FO transform will be applied on. Send as Base64 encoded string>',
},
inputContentType: 'application/json',
},
]
> Snapshot 4
[
{
input: {
options: {
height: 0,
horizontalResolution: 96,
imageFormat: 'image/jpeg',
jpegQuality: 90,
pageNumber: 1,
pngCompressionLevel: 6,
transparent: false,
verticalResolution: 96,
width: 0,
},
pdfFileBase64String: '<Encode your existing PDF document as Base64 encoded string>',
},
inputContentType: 'application/json',
},
]
> Snapshot 5
[
{
input: {
pdfDocumentsAsBase64String: [
'<Encode your pdf documents as Base64 encoded string>',
'<Encode your pdf documents as Base64 encoded string>',
],
},
inputContentType: 'application/json',
},
]
> Snapshot 6
[
{
input: {
fontFileBase64String: '<Attach your own TrueTypeFont file if necessary to style text, encoded as Base64 encoded string>',
options: {
font: {
name: 'Arial',
size: 24,
style: 1,
},
pageNumber: 3,
text: 'This is test string',
textColor: {
b: 35,
g: 34,
r: 33,
},
xOrigin: 1,
xPosition: 40,
yOrigin: 2,
yPosition: -200,
},
pdfFileBase64String: '<Encode your existing PDF document as Base64 encoded string>',
},
inputContentType: 'application/json',
},
]
> Snapshot 7
[]
## parseOpenAPI success put
> Snapshot 1
[]
## parseOpenAPI success randommer
> Snapshot 1
[]
> Snapshot 2
[]
> Snapshot 3
[]
> Snapshot 4
[]
> Snapshot 5
[]
> Snapshot 6
[
{
input: {
max: 100,
min: 1,
},
inputContentType: 'application/json',
},
]
> Snapshot 7
[
{
input: {
max: 100,
min: 1,
},
inputContentType: 'application/json',
},
]
> Snapshot 8
[]
> Snapshot 9
[]
> Snapshot 10
[]
> Snapshot 11
[]
> Snapshot 12
[]
> Snapshot 13
[]
> Snapshot 14
[]
> Snapshot 15
[]
## parseOpenAPI success remove-saasify-headers
> Snapshot 1
[]
## parseOpenAPI success xkcd
> Snapshot 1
[]
> Snapshot 2
[]
## parseOpenAPI success zestful
> Snapshot 1
[
{
input: {
ingredients: [
'3 large Granny Smith apples',
'2 1/2 tablespoons finely chopped parsley',
'½ tsp brown sugar',
],
},
inputContentType: 'application/json',
},
]
## parseOpenAPI success solder
> Snapshot 1
[]
> Snapshot 2
[]
> Snapshot 3
[]
> Snapshot 4
[]
> Snapshot 5
[]
> Snapshot 6
[]
> Snapshot 7
[]
> Snapshot 8
[]
> Snapshot 9
[]