We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e37c737 commit b6e3bf9Copy full SHA for b6e3bf9
test/unit/core/utils.js
@@ -1558,6 +1558,22 @@ describe("utils", () => {
1558
const actual = JSON.parse(res)
1559
expect(actual.test).toEqual(123)
1560
})
1561
+
1562
+ it("should return yaml example if yaml is contained in the content-type", () => {
1563
+ const res = getSampleSchema({
1564
+ type: "object",
1565
+ }, "text/yaml", {}, {test: 123})
1566
1567
+ expect(res).toEqual("test: 123")
1568
+ })
1569
1570
+ it("should return yaml example if yml is contained in the content-type", () => {
1571
1572
1573
+ }, "text/yml", {}, {test: 123})
1574
1575
1576
1577
1578
1579
describe("paramToIdentifier", () => {
0 commit comments