zudoku 0.3.0-dev.73 → 0.3.0-dev.74

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,5 +1,5 @@
1
1
  import "./jsx-runtime-D0NHp7nI.js";
2
- import { o as n } from "./index-D_ZoO3pi.js";
2
+ import { o as n } from "./index-C5qcuxqm.js";
3
3
  import "./urql-DMlBWUKL.js";
4
4
  import "zudoku/openapi-worker";
5
5
  import "./Markdown-CSdXDuYx.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zudoku",
3
- "version": "0.3.0-dev.73",
3
+ "version": "0.3.0-dev.74",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -39,7 +39,8 @@ export const slugifyOperation = (operation: OperationLike, tag?: string) => {
39
39
  const summary =
40
40
  operation.summary +
41
41
  (operation.operationId
42
- ? "-" + operation.operationId.slice(0, operation.summary ? 4 : 12)
42
+ ? "-" +
43
+ operation.operationId.slice(0, operation.summary ? Infinity : Infinity)
43
44
  : "");
44
45
 
45
46
  return slugify(
@@ -211,7 +212,7 @@ const MediaTypeItem = builder
211
212
  .implement({
212
213
  fields: (t) => ({
213
214
  mediaType: t.exposeString("mediaType"),
214
- schema: t.expose("schema", { type: JSONScalar }),
215
+ schema: t.expose("schema", { type: JSONScalar, nullable: true }),
215
216
  examples: t.expose("examples", { type: [ExampleItem], nullable: true }),
216
217
  encoding: t.expose("encoding", { type: [EncodingItem], nullable: true }),
217
218
  }),
@@ -25,7 +25,9 @@ export const RequestBodySidecarBox = ({ content }: { content: Content }) => {
25
25
  copyable
26
26
  className="text-xs"
27
27
  code={JSON.stringify(
28
- generateSchemaExample(content[0].schema as SchemaObject),
28
+ content.at(0)?.schema
29
+ ? generateSchemaExample(content[0].schema as SchemaObject)
30
+ : "",
29
31
  null,
30
32
  2,
31
33
  )}
@@ -17,6 +17,9 @@ export const SchemaListViewItem = ({
17
17
  property: SchemaObject;
18
18
  nestingLevel: number;
19
19
  }) => {
20
+ if (!property) {
21
+ return <div>no property</div>;
22
+ }
20
23
  return (
21
24
  <div
22
25
  key={propertyName}