Skip to content

Commit

Permalink
KDP-1528 remove example in landingpagemodel
Browse files Browse the repository at this point in the history
  • Loading branch information
rosinaderks committed Oct 9, 2023
1 parent 92db409 commit 8a99eb1
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions src/edr_pydantic/capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from typing import List
from typing import Optional

from pydantic import Field

from .link import Link
from .my_base_model import EDRBaseModel

Expand All @@ -28,33 +26,7 @@ class Contact(EDRBaseModel):


class LandingPageModel(EDRBaseModel):
links: List[Link] = Field(
...,
# TODO Do we want this example?
example=[
{
"href": "http://www.example.org/edr",
"hreflang": "en",
"rel": "service-desc",
"type": "application/vnd.oai.openapi+json;version=3.0",
"title": "",
},
{
"href": "http://www.example.org/edr/conformance",
"hreflang": "en",
"rel": "data",
"type": "application/json",
"title": "",
},
{
"href": "http://www.example.org/edr/collections",
"hreflang": "en",
"rel": "data",
"type": "application/json",
"title": "",
},
],
)
links: List[Link]
title: Optional[str] = None
description: Optional[str] = None
keywords: Optional[List[str]] = None
Expand Down

0 comments on commit 8a99eb1

Please sign in to comment.