generated from coulomb/repo-seed
Scope as first class root charactaristic
This commit is contained in:
@@ -716,8 +716,17 @@ class AbilityResponse(BaseModel):
|
||||
capabilities: list[CapabilityResponse]
|
||||
|
||||
|
||||
class ScopeResponse(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
description: str
|
||||
confidence: float
|
||||
confidence_label: str
|
||||
|
||||
|
||||
class RepositoryAbilityMapResponse(BaseModel):
|
||||
repository: RepositoryResponse
|
||||
scope: ScopeResponse
|
||||
abilities: list[AbilityResponse]
|
||||
|
||||
model_config = {
|
||||
@@ -725,6 +734,13 @@ class RepositoryAbilityMapResponse(BaseModel):
|
||||
"examples": [
|
||||
{
|
||||
"repository": REPOSITORY_EXAMPLE,
|
||||
"scope": {
|
||||
"id": 1,
|
||||
"name": "MailRouter",
|
||||
"description": "Scope root for the MailRouter repository.",
|
||||
"confidence": 1.0,
|
||||
"confidence_label": "high",
|
||||
},
|
||||
"abilities": [
|
||||
{
|
||||
"id": 1,
|
||||
|
||||
Reference in New Issue
Block a user