Skip to content

Commit

Permalink
Add metadata in POST user-api
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreyaschorge committed Dec 9, 2024
1 parent 10985c4 commit 3a1b72a
Showing 1 changed file with 37 additions and 31 deletions.
68 changes: 37 additions & 31 deletions src/v2/spec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.1.0
info:
title: Farcaster API V2
version: "2.1.0"
version: "2.1.1"
description: >
The Farcaster API allows you to interact with the Farcaster protocol.
See the [Neynar docs](https://docs.neynar.com/reference) for more details.
Expand Down Expand Up @@ -1941,39 +1941,43 @@ components:
$ref: "#/components/schemas/Address"
block_hash:
type: string
UserMetadata:
type: object
bio:
type: string
pfp_url:
type: string
url:
type: string
username:
type: string
display_name:
type: string
location:
type: object
required:
- latitude
- longitude
properties:
latitude:
type: number
format: double
minimum: -90
maximum: 90
longitude:
type: number
format: double
minimum: -180
maximum: 180
UpdateUserReqBody:
type: object
required:
- signer_uuid
properties:
signer_uuid:
$ref: "#/components/schemas/SignerUUID"
bio:
type: string
pfp_url:
type: string
url:
type: string
username:
type: string
display_name:
type: string
location:
type: object
allOf:
- $ref: "#/components/schemas/UserMetadata"
- type: object
required:
- latitude
- longitude
- signer_uuid
properties:
latitude:
type: number
format: double
minimum: -90
maximum: 90
longitude:
type: number
format: double
minimum: -180
maximum: 180
signer_uuid:
$ref: "#/components/schemas/SignerUUID"
CastViewerContext:
type: object
description: Adds context on interactions the viewer has made with the cast.
Expand Down Expand Up @@ -3201,6 +3205,8 @@ components:
type: number
fname:
type: string
metadata:
$ref: "#/components/schemas/UserMetadata"
RegisterUserResponse:
type: object
required:
Expand Down

0 comments on commit 3a1b72a

Please sign in to comment.