Skip to content

Commit

Permalink
REQ and COUNT commands to properly validaate schema for until/since
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorvsk committed Nov 29, 2023
1 parent 515394d commit 53f37c8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/relay/nostr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,16 @@ module Nostr
minLength: 64, # Not part of NIP-11 but it doesn't make sense
maxLength: 64
}
},
until: {
type: "integer",
minimum: 0
},
since: {
type: "integer",
minimum: 0
}

}
}
},
Expand Down Expand Up @@ -287,6 +296,14 @@ module Nostr
type: :string,
minLength: 64,
maxLength: 64
},
until: {
type: "integer",
minimum: 0
},
since: {
type: "integer",
minimum: 0
}
}
}
Expand Down

0 comments on commit 53f37c8

Please sign in to comment.