diff --git a/src/components/ModelCatalog.jsx b/src/components/ModelCatalog.jsx
index f7541b05ff4a9fa..6bfcf294a985c0d 100644
--- a/src/components/ModelCatalog.jsx
+++ b/src/components/ModelCatalog.jsx
@@ -184,6 +184,15 @@ const ModelCatalog = ({ models }) => {
+ {modelList.length === 0 && (
+
+
No models found
+
+ Try a different search term, or broaden your search by removing
+ filters.
+
+
+ )}
{modelList.map((model) => {
const isBeta = model.model.properties.find(
({ property_id, value }) =>
diff --git a/src/components/models/SchemaRow.astro b/src/components/models/SchemaRow.astro
index 9753a640bd51e93..d2e4f64122e85aa 100644
--- a/src/components/models/SchemaRow.astro
+++ b/src/components/models/SchemaRow.astro
@@ -1,38 +1,48 @@
---
-import { Type } from "~/components";
+import { Type, MetaInfo } from "~/components";
import { type SchemaNode } from "@stoplight/json-schema-tree";
-const { node } = Astro.props;
+const { node, root } = Astro.props;
---
-
-
- {node.subpath[node.subpath.length - 1]}
-
+
+ {
+ node.title ? (
+ {node.title}
+ ) : (
+
+ {node.subpath[node.subpath.length - 1]}
+
+ )
+ }
+
{node.primaryType && }
+ {node.combiners && node.combiners.includes("oneOf") && }
{
node.annotations.default && (
- default {node.annotations.default}
+
)
}
{
(node.validations.minLength !== undefined ||
node.validations.minimum !== undefined) && (
-
- min {node.validations.minLength || node.validations.minimum}
-
+
)
}
{
(node.validations.maxLength !== undefined ||
node.validations.maximum !== undefined) && (
-
- max {node.validations.maxLength || node.validations.maximum}
-
+
)
}
- {node.annotations.description}
+ {node.annotations.description}
{
node.children && (
diff --git a/src/components/models/SchemaViewer.astro b/src/components/models/SchemaViewer.astro
index 9bba6ef8c6052d9..eec7994f22ee64e 100644
--- a/src/components/models/SchemaViewer.astro
+++ b/src/components/models/SchemaViewer.astro
@@ -56,7 +56,7 @@ jsonSchemaTree.populate();
{
(jsonSchemaTree.root.children[0] as RegularNode).children?.map(
- (node: SchemaNode) => ,
+ (node: SchemaNode) => ,
)
}