supported versions tidy up

This commit is contained in:
2026-02-27 12:00:42 +01:00
parent edaa5cd110
commit 64eacdab47
3 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -8,7 +8,7 @@ The Moam VTT adapter is a microservice that:
- Detects Moam VTT JSON character files
- Converts Moam VTT format to BMRT (BaMoRT interchange format)
- Exports BMRT format back to Moam VTT format
- Supports Moam game versions: 10.x, 11.x, 12.x
- Supports Moam game versions: 5.x
## Architecture
@@ -37,7 +37,7 @@ Returns adapter capabilities and version information.
"version": "1.0",
"bmrt_versions": ["1.0"],
"supported_extensions": [".json"],
"supported_game_versions": ["10.x", "11.x", "12.x"],
"supported_game_versions": ["4.x", "5.x", "6.x"],
"capabilities": ["import", "export", "detect"]
}
```
@@ -51,7 +51,7 @@ Analyzes JSON data and returns confidence score (0.0 to 1.0).
```json
{
"confidence": 0.95,
"version": "10.x"
"version": "5.x"
}
```
@@ -199,7 +199,7 @@ The backend's `importer` package:
### Planned Features
1. **Extensions Support**: Preserve Moam-specific fields (like `Stand`) in BMRT `Extensions` field
2. **Version Detection**: Better detection of specific Moam versions (10.x vs 11.x vs 12.x)
2. **Version Detection**: Better detection of specific Moam versions (5.x vs 4.x vs 6.x)
3. **Validation**: Deeper validation of Moam-specific business rules
4. **Error Details**: More detailed error messages with field-level feedback
+1 -1
View File
@@ -22,7 +22,7 @@ func TestDetectMoamFormat(t *testing.T) {
}
// Should detect version (can be empty for generic detection)
if version != "10.x" && version != "" {
if version != "5.x" && version != "" {
t.Logf("Detected version: %s", version)
}
}
+2 -2
View File
@@ -80,7 +80,7 @@ func metadataHandler(c *gin.Context) {
Version: "1.0",
BmrtVersions: []string{"1.0"},
SupportedExtensions: []string{".json"},
SupportedVersions: []string{"10.x", "11.x", "12.x"},
SupportedVersions: []string{"5.x"},
Capabilities: []string{"import", "export", "detect"},
}
@@ -186,7 +186,7 @@ func detectMoamFormat(data []byte) (float64, string) {
if id, ok := raw["id"].(string); ok {
if strings.HasPrefix(id, "moam-character-") {
confidence += 0.3
version = "10.x" // Default version, could be refined
version = "5.x" // Default version, could be refined
}
}