Skip to content

Commit

Permalink
sorting endpoints by ID instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyagara committed Jun 10, 2024
1 parent 432a4bc commit 0d5beaf
Show file tree
Hide file tree
Showing 24 changed files with 75 additions and 81 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ func main() {

- Maybe the context usage throughout the project could be improved
- Maybe add and move logging to the Cache and RateLimit interfaces, instead of passing them around
- Maybe endpoint methods int32/int64 should be changed to just int
- Maybe models int32/int64 should be changed to just int
- Maybe endpoint methods int32/int64 parameters should be changed to just int
- Add checks for duration of tests that include any WaitN/any blocking
- Add more integration tests
- RateLimit
Expand Down
88 changes: 44 additions & 44 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package api
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

import (
"errors"
Expand Down Expand Up @@ -86,79 +86,79 @@ func StatusCodeToError(statusCode int) error {
var (
// A slice containing all endpoints from the Riot API.
AllEndpoints = [][]string{
{"GET", "/fulfillment/v1/summoners/by-puuid/{rsoPUUID}", "summoner-v4.getByRSOPUUID"},
{"GET", "/lol/challenges/v1/challenges/config", "lol-challenges-v1.getAllChallengeConfigs"},
{"GET", "/lol/challenges/v1/challenges/percentiles", "lol-challenges-v1.getAllChallengePercentiles"},
{"GET", "/lol/challenges/v1/challenges/{challengeId}/config", "lol-challenges-v1.getChallengeConfigs"},
{"GET", "/lol/challenges/v1/challenges/{challengeId}/leaderboards/by-level/{level}", "lol-challenges-v1.getChallengeLeaderboards"},
{"GET", "/lol/challenges/v1/challenges/{challengeId}/percentiles", "lol-challenges-v1.getChallengePercentiles"},
{"GET", "/lol/challenges/v1/player-data/{puuid}", "lol-challenges-v1.getPlayerData"},
{"GET", "/riot/account/v1/active-shards/by-game/{game}/by-puuid/{puuid}", "account-v1.getActiveShard"},
{"GET", "/riot/account/v1/accounts/me", "account-v1.getByAccessToken"},
{"GET", "/riot/account/v1/accounts/by-puuid/{puuid}", "account-v1.getByPuuid"},
{"GET", "/riot/account/v1/accounts/by-riot-id/{gameName}/{tagLine}", "account-v1.getByRiotId"},
{"GET", "/lol/champion-mastery/v4/champion-masteries/by-puuid/{encryptedPUUID}", "champion-mastery-v4.getAllChampionMasteriesByPUUID"},
{"GET", "/lol/champion-mastery/v4/champion-masteries/by-puuid/{encryptedPUUID}/by-champion/{championId}", "champion-mastery-v4.getChampionMasteryByPUUID"},
{"GET", "/lol/champion-mastery/v4/champion-masteries/by-puuid/{encryptedPUUID}/top", "champion-mastery-v4.getTopChampionMasteriesByPUUID"},
{"GET", "/lol/champion-mastery/v4/scores/by-puuid/{encryptedPUUID}", "champion-mastery-v4.getChampionMasteryScoreByPUUID"},
{"GET", "/lol/champion-mastery/v4/champion-masteries/by-puuid/{encryptedPUUID}/top", "champion-mastery-v4.getTopChampionMasteriesByPUUID"},
{"GET", "/lol/platform/v3/champion-rotations", "champion-v3.getChampionInfo"},
{"GET", "/lol/clash/v1/players/by-summoner/{summonerId}", "clash-v1.getPlayersBySummoner"},
{"GET", "/lol/clash/v1/teams/{teamId}", "clash-v1.getTeamById"},
{"GET", "/lol/clash/v1/tournaments", "clash-v1.getTournaments"},
{"GET", "/lol/clash/v1/tournaments/by-team/{teamId}", "clash-v1.getTournamentByTeam"},
{"GET", "/lol/clash/v1/tournaments/{tournamentId}", "clash-v1.getTournamentById"},
{"GET", "/lol/clash/v1/tournaments/by-team/{teamId}", "clash-v1.getTournamentByTeam"},
{"GET", "/lol/clash/v1/tournaments", "clash-v1.getTournaments"},
{"GET", "/lol/league-exp/v4/entries/{queue}/{tier}/{division}", "league-exp-v4.getLeagueEntries"},
{"GET", "/lol/league/v4/challengerleagues/by-queue/{queue}", "league-v4.getChallengerLeague"},
{"GET", "/lol/league/v4/entries/by-summoner/{encryptedSummonerId}", "league-v4.getLeagueEntriesForSummoner"},
{"GET", "/lol/league/v4/entries/{queue}/{tier}/{division}", "league-v4.getLeagueEntries"},
{"GET", "/lol/league/v4/grandmasterleagues/by-queue/{queue}", "league-v4.getGrandmasterLeague"},
{"GET", "/lol/league/v4/leagues/{leagueId}", "league-v4.getLeagueById"},
{"GET", "/lol/league/v4/entries/{queue}/{tier}/{division}", "league-v4.getLeagueEntries"},
{"GET", "/lol/league/v4/entries/by-summoner/{encryptedSummonerId}", "league-v4.getLeagueEntriesForSummoner"},
{"GET", "/lol/league/v4/masterleagues/by-queue/{queue}", "league-v4.getMasterLeague"},
{"GET", "/lol/match/v5/matches/by-puuid/{puuid}/ids", "match-v5.getMatchIdsByPUUID"},
{"GET", "/lol/challenges/v1/challenges/config", "lol-challenges-v1.getAllChallengeConfigs"},
{"GET", "/lol/challenges/v1/challenges/percentiles", "lol-challenges-v1.getAllChallengePercentiles"},
{"GET", "/lol/challenges/v1/challenges/{challengeId}/config", "lol-challenges-v1.getChallengeConfigs"},
{"GET", "/lol/challenges/v1/challenges/{challengeId}/leaderboards/by-level/{level}", "lol-challenges-v1.getChallengeLeaderboards"},
{"GET", "/lol/challenges/v1/challenges/{challengeId}/percentiles", "lol-challenges-v1.getChallengePercentiles"},
{"GET", "/lol/challenges/v1/player-data/{puuid}", "lol-challenges-v1.getPlayerData"},
{"GET", "/lol/status/v4/platform-data", "lol-status-v4.getPlatformData"},
{"POST", "/lor/deck/v1/decks/me", "lor-deck-v1.createDeck"},
{"GET", "/lor/deck/v1/decks/me", "lor-deck-v1.getDecks"},
{"GET", "/lor/inventory/v1/cards/me", "lor-inventory-v1.getCards"},
{"GET", "/lor/match/v1/matches/{matchId}", "lor-match-v1.getMatch"},
{"GET", "/lor/match/v1/matches/by-puuid/{puuid}/ids", "lor-match-v1.getMatchIdsByPUUID"},
{"GET", "/lor/ranked/v1/leaderboards", "lor-ranked-v1.getLeaderboards"},
{"GET", "/lor/status/v1/platform-data", "lor-status-v1.getPlatformData"},
{"GET", "/lol/match/v5/matches/{matchId}", "match-v5.getMatch"},
{"GET", "/lol/match/v5/matches/by-puuid/{puuid}/ids", "match-v5.getMatchIdsByPUUID"},
{"GET", "/lol/match/v5/matches/{matchId}/timeline", "match-v5.getTimeline"},
{"GET", "/lol/platform/v3/champion-rotations", "champion-v3.getChampionInfo"},
{"GET", "/lol/spectator/tft/v5/active-games/by-puuid/{encryptedPUUID}", "spectator-tft-v5.getCurrentGameInfoByPuuid"},
{"GET", "/lol/spectator/tft/v5/featured-games", "spectator-tft-v5.getFeaturedGames"},
{"GET", "/lol/spectator/v5/active-games/by-summoner/{encryptedPUUID}", "spectator-v5.getCurrentGameInfoByPuuid"},
{"GET", "/lol/spectator/v5/featured-games", "spectator-v5.getFeaturedGames"},
{"GET", "/lol/status/v4/platform-data", "lol-status-v4.getPlatformData"},
{"GET", "/lol/summoner/v4/summoners/me", "summoner-v4.getByAccessToken"},
{"GET", "/lol/summoner/v4/summoners/by-account/{encryptedAccountId}", "summoner-v4.getByAccountId"},
{"GET", "/lol/summoner/v4/summoners/by-puuid/{encryptedPUUID}", "summoner-v4.getByPUUID"},
{"GET", "/lol/summoner/v4/summoners/me", "summoner-v4.getByAccessToken"},
{"GET", "/fulfillment/v1/summoners/by-puuid/{rsoPUUID}", "summoner-v4.getByRSOPUUID"},
{"GET", "/lol/summoner/v4/summoners/{encryptedSummonerId}", "summoner-v4.getBySummonerId"},
{"POST", "/lol/tournament-stub/v5/codes", "tournament-stub-v5.createTournamentCode"},
{"GET", "/lol/tournament-stub/v5/codes/{tournamentCode}", "tournament-stub-v5.getTournamentCode"},
{"GET", "/lol/tournament-stub/v5/lobby-events/by-code/{tournamentCode}", "tournament-stub-v5.getLobbyEventsByCode"},
{"POST", "/lol/tournament-stub/v5/providers", "tournament-stub-v5.registerProviderData"},
{"POST", "/lol/tournament-stub/v5/tournaments", "tournament-stub-v5.registerTournament"},
{"POST", "/lol/tournament/v5/codes", "tournament-v5.createTournamentCode"},
{"PUT", "/lol/tournament/v5/codes/{tournamentCode}", "tournament-v5.updateCode"},
{"GET", "/lol/tournament/v5/codes/{tournamentCode}", "tournament-v5.getTournamentCode"},
{"GET", "/lol/tournament/v5/games/by-code/{tournamentCode}", "tournament-v5.getGames"},
{"GET", "/lol/tournament/v5/lobby-events/by-code/{tournamentCode}", "tournament-v5.getLobbyEventsByCode"},
{"POST", "/lol/tournament/v5/providers", "tournament-v5.registerProviderData"},
{"POST", "/lol/tournament/v5/tournaments", "tournament-v5.registerTournament"},
{"GET", "/lor/deck/v1/decks/me", "lor-deck-v1.getDecks"},
{"POST", "/lor/deck/v1/decks/me", "lor-deck-v1.createDeck"},
{"GET", "/lor/inventory/v1/cards/me", "lor-inventory-v1.getCards"},
{"GET", "/lor/match/v1/matches/by-puuid/{puuid}/ids", "lor-match-v1.getMatchIdsByPUUID"},
{"GET", "/lor/match/v1/matches/{matchId}", "lor-match-v1.getMatch"},
{"GET", "/lor/ranked/v1/leaderboards", "lor-ranked-v1.getLeaderboards"},
{"GET", "/lor/status/v1/platform-data", "lor-status-v1.getPlatformData"},
{"GET", "/riot/account/v1/accounts/by-puuid/{puuid}", "account-v1.getByPuuid"},
{"GET", "/riot/account/v1/accounts/by-riot-id/{gameName}/{tagLine}", "account-v1.getByRiotId"},
{"GET", "/riot/account/v1/accounts/me", "account-v1.getByAccessToken"},
{"GET", "/riot/account/v1/active-shards/by-game/{game}/by-puuid/{puuid}", "account-v1.getActiveShard"},
{"GET", "/tft/league/v1/challenger", "tft-league-v1.getChallengerLeague"},
{"GET", "/tft/league/v1/entries/by-summoner/{summonerId}", "tft-league-v1.getLeagueEntriesForSummoner"},
{"GET", "/tft/league/v1/entries/{tier}/{division}", "tft-league-v1.getLeagueEntries"},
{"GET", "/tft/league/v1/grandmaster", "tft-league-v1.getGrandmasterLeague"},
{"GET", "/tft/league/v1/leagues/{leagueId}", "tft-league-v1.getLeagueById"},
{"GET", "/tft/league/v1/entries/{tier}/{division}", "tft-league-v1.getLeagueEntries"},
{"GET", "/tft/league/v1/entries/by-summoner/{summonerId}", "tft-league-v1.getLeagueEntriesForSummoner"},
{"GET", "/tft/league/v1/master", "tft-league-v1.getMasterLeague"},
{"GET", "/tft/league/v1/rated-ladders/{queue}/top", "tft-league-v1.getTopRatedLadder"},
{"GET", "/tft/match/v1/matches/by-puuid/{puuid}/ids", "tft-match-v1.getMatchIdsByPUUID"},
{"GET", "/tft/match/v1/matches/{matchId}", "tft-match-v1.getMatch"},
{"GET", "/tft/match/v1/matches/by-puuid/{puuid}/ids", "tft-match-v1.getMatchIdsByPUUID"},
{"GET", "/tft/status/v1/platform-data", "tft-status-v1.getPlatformData"},
{"GET", "/tft/summoner/v1/summoners/me", "tft-summoner-v1.getByAccessToken"},
{"GET", "/tft/summoner/v1/summoners/by-account/{encryptedAccountId}", "tft-summoner-v1.getByAccountId"},
{"GET", "/tft/summoner/v1/summoners/by-puuid/{encryptedPUUID}", "tft-summoner-v1.getByPUUID"},
{"GET", "/tft/summoner/v1/summoners/me", "tft-summoner-v1.getByAccessToken"},
{"GET", "/tft/summoner/v1/summoners/{encryptedSummonerId}", "tft-summoner-v1.getBySummonerId"},
{"POST", "/lol/tournament-stub/v5/codes", "tournament-stub-v5.createTournamentCode"},
{"GET", "/lol/tournament-stub/v5/lobby-events/by-code/{tournamentCode}", "tournament-stub-v5.getLobbyEventsByCode"},
{"GET", "/lol/tournament-stub/v5/codes/{tournamentCode}", "tournament-stub-v5.getTournamentCode"},
{"POST", "/lol/tournament-stub/v5/providers", "tournament-stub-v5.registerProviderData"},
{"POST", "/lol/tournament-stub/v5/tournaments", "tournament-stub-v5.registerTournament"},
{"POST", "/lol/tournament/v5/codes", "tournament-v5.createTournamentCode"},
{"GET", "/lol/tournament/v5/games/by-code/{tournamentCode}", "tournament-v5.getGames"},
{"GET", "/lol/tournament/v5/lobby-events/by-code/{tournamentCode}", "tournament-v5.getLobbyEventsByCode"},
{"GET", "/lol/tournament/v5/codes/{tournamentCode}", "tournament-v5.getTournamentCode"},
{"POST", "/lol/tournament/v5/providers", "tournament-v5.registerProviderData"},
{"POST", "/lol/tournament/v5/tournaments", "tournament-v5.registerTournament"},
{"PUT", "/lol/tournament/v5/codes/{tournamentCode}", "tournament-v5.updateCode"},
{"GET", "/val/content/v1/contents", "val-content-v1.getContent"},
{"GET", "/val/match/v1/matches/{matchId}", "val-match-v1.getMatch"},
{"GET", "/val/match/v1/matchlists/by-puuid/{puuid}", "val-match-v1.getMatchlist"},
Expand Down
2 changes: 1 addition & 1 deletion api/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package api
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

// Regional routes, used in tournament services, Legends of Runeterra, and some other endpoints.
type RegionalRoute string
Expand Down
2 changes: 1 addition & 1 deletion clients/lol/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package lol
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

import "github.com/Kyagara/equinox/v2/internal"

Expand Down
2 changes: 1 addition & 1 deletion clients/lol/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "strconv"
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

// Platform routes for League of Legends.
type PlatformRoute string
Expand Down
2 changes: 1 addition & 1 deletion clients/lol/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package lol
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

import (
"context"
Expand Down
4 changes: 2 additions & 2 deletions clients/lol/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package lol
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

// lol-challenges-v1.ApexPlayerInfoDto
type ChallengesApexPlayerInfoV1DTO struct {
Expand Down Expand Up @@ -274,6 +274,7 @@ type MatchChallengesV5DTO struct {
EnemyJungleMonsterKills float64 `json:"enemyJungleMonsterKills,omitempty"`
FasterSupportQuestCompletion float64 `json:"fasterSupportQuestCompletion,omitempty"`
FastestLegendary float64 `json:"fastestLegendary,omitempty"`
FirstTurretKilled float64 `json:"firstTurretKilled,omitempty"`
GameLength float64 `json:"gameLength,omitempty"`
GoldPerMinute float64 `json:"goldPerMinute,omitempty"`
HadAfkTeammate float64 `json:"hadAfkTeammate,omitempty"`
Expand Down Expand Up @@ -323,7 +324,6 @@ type MatchChallengesV5DTO struct {
EpicMonsterKillsWithin30SecondsOfSpawn int32 `json:"epicMonsterKillsWithin30SecondsOfSpawn,omitempty"`
EpicMonsterSteals int32 `json:"epicMonsterSteals,omitempty"`
EpicMonsterStolenWithoutSmite int32 `json:"epicMonsterStolenWithoutSmite,omitempty"`
FirstTurretKilled int32 `json:"firstTurretKilled,omitempty"`
FirstTurretKilledTime float32 `json:"firstTurretKilledTime,omitempty"`
FistBumpParticipation int32 `json:"fistBumpParticipation,omitempty"`
FlawlessAces int32 `json:"flawlessAces,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion clients/lor/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package lor
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

import "github.com/Kyagara/equinox/v2/internal"

Expand Down
2 changes: 1 addition & 1 deletion clients/lor/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package lor
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion clients/lor/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package lor
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

// lor-deck-v1.NewDeckDto
type DeckNewDeckV1DTO struct {
Expand Down
2 changes: 1 addition & 1 deletion clients/riot/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package riot
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

import "github.com/Kyagara/equinox/v2/internal"

Expand Down
2 changes: 1 addition & 1 deletion clients/riot/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package riot
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion clients/riot/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package riot
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

// account-v1.ActiveShardDto
type AccountActiveShardV1DTO struct {
Expand Down
2 changes: 1 addition & 1 deletion clients/tft/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package tft
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

import "github.com/Kyagara/equinox/v2/internal"

Expand Down
2 changes: 1 addition & 1 deletion clients/tft/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "strconv"
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

// Platform routes for Teamfight Tactics.
type PlatformRoute string
Expand Down
2 changes: 1 addition & 1 deletion clients/tft/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package tft
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion clients/tft/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package tft
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

// tft-league-v1.LeagueEntryDTO
type LeagueEntryV1DTO struct {
Expand Down
2 changes: 1 addition & 1 deletion clients/val/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package val
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

import "github.com/Kyagara/equinox/v2/internal"

Expand Down
2 changes: 1 addition & 1 deletion clients/val/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package val
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

// Platform routes for Valorant.
type PlatformRoute string
Expand Down
2 changes: 1 addition & 1 deletion clients/val/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package val
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion clients/val/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package val
// //
///////////////////////////////////////////////

// Spec version = 965a512f06ece005d0879258a6234ff0765d9a35
// Spec version = 9fef246d3ece1da9515c8941f7a3c7cd57e330fc

// val-content-v1.ActDto
type ContentActV1DTO struct {
Expand Down
2 changes: 1 addition & 1 deletion codegen/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func getAllEndpoints(paths gjson.Result) []Endpoint {
}

sort.Slice(endpoints, func(i, j int) bool {
return endpoints[i].Path < endpoints[j].Path
return endpoints[i].ID < endpoints[j].ID
})

return endpoints
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ module github.com/Kyagara/equinox/v2
go 1.21

require (
github.com/alicebob/miniredis/v2 v2.32.1
github.com/alicebob/miniredis/v2 v2.33.0
github.com/allegro/bigcache/v3 v3.1.0
github.com/go-json-experiment/json v0.0.0-20240418180308-af2d5061e6c2
github.com/jarcoal/httpmock v1.3.1
github.com/redis/go-redis/v9 v9.5.1
github.com/rs/zerolog v1.32.0
github.com/redis/go-redis/v9 v9.5.3
github.com/rs/zerolog v1.33.0
github.com/stretchr/testify v1.9.0
)

Expand Down
Loading

0 comments on commit 0d5beaf

Please sign in to comment.